nuxt-electron icon indicating copy to clipboard operation
nuxt-electron copied to clipboard

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

Open fangzq229 opened this issue 9 months ago • 3 comments

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.

fangzq229 avatar Apr 30 '24 08:04 fangzq229

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

image

nexmoe avatar May 27 '24 02:05 nexmoe

add --prerender fix my problem

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

nexmoe avatar May 27 '24 03:05 nexmoe

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?

rexhent avatar Jun 25 '24 12:06 rexhent