Skip to content Skip to sidebar Skip to footer

Electron App Runs Without Any Errors However The Window Does Not Open Or Show In Task Manager

I am building an electron app. The app runs without any errors but does not open. I am running windows 7 on a 32 bit machine. My main.js file looks like this: const {app, BrowserWi

Solution 1:

This line is wrong

win.on('ready', createWindow);

you meant

app.on('ready', createWindow);

outside of createWindow's scope. Like this:

functioncreateWindow() {
  ...
};
app.on('all-window-closed', () => {
  ...
});
app.on('ready', createWindow);

Solution 2:

I had the same problem after I upgraded electron from v3.x to v8.x it started working

Post a Comment for "Electron App Runs Without Any Errors However The Window Does Not Open Or Show In Task Manager"