electron-next icon indicating copy to clipboard operation
electron-next copied to clipboard

Disables all main process errors

Open 2JJ1 opened this issue 6 years ago • 0 comments

When including, "await prepareNext('./renderer')", all errors that typically appear in Electron main's error pop up no longer appear. Rather the Electron process just exits and gives no information regarding the error.

For example,

require('../invalid/file/path.json')

That code in electron's main would just flat out exit the app and the console says there was a lifecycle error. The error log it gives does not help. When removing "await prepareNext('./renderer')", I can read the error just fine from Electron's error pop up window.

2JJ1 avatar Mar 30 '19 15:03 2JJ1