I cloned the prebuilt quickstart for electron and that worked fine. I was trying to import the remote module, but then started getting token errors (things like “missing token: >”) that were inside the remote library. Looking around on the web it seemed like I need to rebuild the electron module, so I modified the libraries to use the actual electron package, but now when I run the “electron” command instead of “npm start” on my directory I get no window and no output.
I’ve also tried “npm start”, but that complains about app being undefined.
const electron = require(‘electron’);
const app = electron.app;
app.on(…) // app is undefined here