-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Electron app run shows raw index.html file not running app #517
Comments
I've noticed that if you choose View/Reload then the app runs correctly. Once running 'npm run electron:run' actually served the app in it's functional state, but all other times it displays the index.html file instead of running the app. An observant dev might notice this in the electron.main.ts:
So this behavior is by design. If you run the app with two flags like this then the app is run.
|
This might still be an issue. Running the app with the -- --serve flags causes a blank screen. Running without the flags, as noted above, prints out the index.html, but refreshing the view runs the app. |
This is partially a duplicate of #507. |
I'm submitting Bug report
Current behavior
Using npm start runs the app in the browser.
The app loads in the Electron shell but displays the contents of the index.html file instead of the running app.
Expected behavior
App runs in the Electron window instead of showing the source.
Minimal reproduction of the problem with instructions
https://github.com/timoplus/web-electron-rocket
(This repo includes the answers to the creation questions in the readme.)
Environment
Windows 10.
The text was updated successfully, but these errors were encountered: