Skip to content
Advertisement

Window does not render on build, works fine in development server

My app does not display a window when it’s built, but works fine when I run npm run serve

There is still an process running in task manager, and the same thing happens if I use the installer. I don’t get any errors warnings from electron-builder.

background.js:

JavaScript

I tried the fixes here and here to no avail.

I’m using electron-vue. You can find the full code here if you need more context

Advertisement

Answer

The issue ended up being code present inside of the app.on('ready') function. Any additional code needs to be written after the window is created, or the issue occurs.

Advertisement