Electron threw a compile error and Windows command prompt goes non writable


#1

So my code had an invalid syntax, which I was trying out to see if it works and while compiling I got App threw an error during load.

Now in the command-prompt the error is listed in detail with the cursor still blinking but NOT WRITABLE. Closing, re-opening, re-navigating and restarting with electron . only seems to work.

Can’t do the same for many errors I might face. So, is there a way to not let that happen? How are you guys dealing with it? Is it in anyway connected to stopping the npm server? If it helps, I’m using a Win 7 64bit OS.


#2

Found a way, which is to terminate the batch job by hitting CTRL+C, which asks Terminate batch job (Y/N)? where choosing Y terminates and makes the command prompt writable.