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.
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.