Following the standard primary structure templates offered by the Electron documentation ( link ), I encountered errors as the development of an application.
Displaying the required information, the message that appeared was: App threw an error during load TypeError: app.on is not a function The JavaScript error occurred in the main process Uncaught Exception: TypeError: app.on is not a function + location in code where app.on had