A JavaScript error occurred in the main process. (how to solve this)

Eke, Chinedu
2 min readSep 22, 2020

--

As developers, our job is 60% debugging and 40% code writing. And errors can occur from different angles, and figuring out the solution could be a handful.

There are different code editors out there such as vs code, brackets, atom, notepad++ etc. And each having unique advantages and disadvantages and each perform and function differently.

This error is one newcomers would find confusing and heartbreaking(as i felt too) and i personally think the engineers at atom should find a fix.

screenshot of the atom editor error

This error arises from a forceful closure of the atom code editor, which could be from an unexpected shut down or restart of your machine. If your first instinct to solving this problem is to uninstall atom and install again? yea it’d work but there’s no need for that.

Simply navigate your machine’s explorer, find the atom set up .exe download and install again.

Simple.

But be aware the files being worked on prior to the crash, will no longer be readable and useable for edit. You will have to start from the beginning, which is sad and hurtful as it was for me. Guess what? this is why git can be a life saver.

So i will advise, if you are a fan of atom and always want to use atom, when using the atom editor always use git so that life will be easier for you.

--

--

No responses yet