This is using Electron with Angular 18.
All the setup seems fine, as per creating a JS file to host electron, include it in package.json. What is one of the reason it don’t open upon calling electron .
? And worse, it crash without telling you a reason.
In the end, one found out because one don’t use main.js
, rather, one uses electron.js
. It might have some clash inside, one don’t know, but changing the name of the electron hosting file to other than electron.js
(one hadn’t tried other names other than main.js) and the window pop up miraculously.