Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A JavaScript error occured in the main process : Compass

Tags:

mongodb

When I started mongoDB client application Compass 1.13.1, I get the error like: enter image description here

How I can solve it? Same issue was here.

like image 742
invzbl3 Avatar asked Jun 22 '18 18:06

invzbl3


People also ask

Why do I get a JavaScript error on Discord?

One of the major reasons for the fatal JavaScript error Discord is the corrupted installation of the software, so the user must uninstall Discord from the system and then reinstall it again to fix this error.

What causes a JavaScript error?

Grammatical mistakes, such as missing parentheses or unmatched brackets, are the major causes of syntax errors in JavaScript. For example, when you must use conditional statements to address multiple conditions, you may miss providing the parentheses as required, leading to syntax flaws.

What is a JavaScript error?

These errors occur when the JavaScript engine is parsing a script and encounters syntactically invalid code. If a JavaScript file contains a syntax error, none of the code in the file will execute.

What is the “a Javascript error occurred in the main process” error?

How to fix the “A javascript error occurred in the main process” error? Sometimes when you try to open an application in windows it may pop an error “A javascript error occurred in the main process” most of the time it happens with chatting apps like Discord, Skype, or Microsoft Team but maybe it happens with VSCode or Forticlient VPN.

What are the common causes of JavaScript errors?

Cause 1: Damaged application or parameters. This is one of the main reasons for the Javascript error that occurred in the main process. Often, these errors occur when an application is misconfigured or when the application is damaged.

How to fix discord “a Javascript error occurred in the main process”?

Here’s how to fix “A JavaScript error occurred in the main process” on Discord: 1. End Discord in the Task Manager Open the Task Manager (using Ctrl + Alt + Delete) > Right-click Discord > End task. Firstly, you need to end the task for Discord in the Task Manager.


2 Answers

Solution that worked for me:

  1. Go to task manager
  2. Kill the process called: "The MongoDB GUI"
like image 174
Senne Verhaegen Avatar answered Nov 04 '22 16:11

Senne Verhaegen


Stuck?

open app -> get error -> no reboot ->

task manager -> "The MongoDB GUI" or "MongoDBCompassCommunity" -> kill process


Prevention?

Never quit the app using native close methods ("X" button / "Close window")

Always quit via Connect -> Quit (Ctrl+Q)


No need to disconnect first. It is just badly done electron app.


Answer based on solution from @Senne Verhaegen

like image 23
Jindra Vysocký Avatar answered Nov 04 '22 16:11

Jindra Vysocký