-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 reload not working #15
Comments
Thanks for this report ! Regards |
I think I’m having the same issue, is this the only solution? It would be nice to be able to configure electron to work with html5 location strategy (angular’s default) |
Yes... Is there any other solution for this to make things work with angular's default strategy |
Had the same issue working with electron & angular 7, this solved for me. |
2019 still working dude |
The change to It adds to every URL an extra backslash which cannot be resolved by the router e.g. it goes from "file" to "file/" which is quite annoying and it is hard to find out why this is happening. I checked with electron and the reload seems to work for hashing and without it with the Since the latest version of this repo is supporting angular 9, would it be possible to change the base element back, since there is no need for the |
@CPrescher You are right. The By the way routing doesn't seems to work when the app is encapsulate in an electron executable when To make it works, I had to set I also added another page module to check that the routing is correctly working. |
Great, thank you for making this change so fast. |
You're welcome :) |
Is webpack supposed to reload the renderer when you change angular-related code? I'm not seeing webpack attempt to recompile anything when I change an html file. |
Also cannot get this to work. my stack: @ionic/[email protected] Had to employ the {useHash: true} option as well as set to get manual reload working via ctrl+R. electron-reload itself never works on this stack. If I add it top of Electron's index.js file (Capacitor renamed main.js to index.js) as per the example on the main page of this repo, then on every detected change the cursor starts flickering and an endless spinning circle appears next to the cursor until I close the Electron window... any idea how to fix this ? would love to have auto-reloads in Electron browser... |
For people who still have this issue, do a force app load if failed:
|
This will work, but you will loose the value of the variable because your app will be restarting. So if you need a log-in screen before you're able to run the electron app, be sure to store the value in the @maximegris |
Hi. First of all thanks for this great repository. Im pretty new working with Angular 4 so this problem may be because of that.
The issue is that live reloading my app after changes in the code are done is not possible until i change app-routing.module.ts to this:
Also i had to change index.html base href tag to be empty:
<base href="">
all this to tell angular to work with hashbang style routes instead of html5 style routes.
The solution came from here.
¿is this the right solution or i'm missing something?
Thanks in advance, gr33ts from Chile.
The text was updated successfully, but these errors were encountered: