ngx-rocket / generator-ngx-rocket

:rocket: Extensible Angular 14+ enterprise-grade project generator
https://ngx-rocket.github.io/
MIT License
1.53k stars 217 forks source link

blank page on refresh #507

Closed geyuqiu closed 4 years ago

geyuqiu commented 5 years ago

I'm submitting a...

Current behavior

npm run electron:run click cmd r -> blank page

Expected behavior

should still load index.html

Minimal reproduction of the problem with instructions

choose electron with angular

Environment




Others:

sinedied commented 5 years ago

You need to build the angular app before with npm run build. I know this is not ideal for now, there is some work to do to improve the developer experience with the electron target, see https://github.com/ngx-rocket/generator-ngx-rocket/issues/460 and https://github.com/ngx-rocket/generator-ngx-rocket/issues/418 if you are willing to help.

geyuqiu commented 4 years ago

I forgot to mention that Angular files are already built in dist(.electron) Actually I solved it setting base-href in index.html :)