caoxiemeihao / nuxt-electron

Integrate Nuxt and Electron
MIT License
169 stars 18 forks source link

After the build is successful, the application opens with a white screen. How to solve the problem? #76

Open fangzq229 opened 2 months ago

fangzq229 commented 2 months ago

I ran a simple program. After the build was successful, when I tried to run the application, I got a white screen with no content.

nexmoe commented 1 month ago

I'm facing the same issue. It seems that Nuxt fails to generate public/index.html after the build.

image

nexmoe commented 1 month ago

add --prerender fix my problem

"build": "nuxt build --prerender && electron-builder",
rexhent commented 6 days ago

add --prerender fix my problem

"build": "nuxt build --prerender && electron-builder",

I could add this to documentation if this is an accepted solution? This is in the package.json correct?