-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Infinite Reload-Loop on application startup #2816
Comments
Heya, I can investigate, but can you give me exact repro steps, i.e. what you used for |
Hi, thanks for taking the time to look into this! I simply used You can do this in the default app as generated by angular-cli, but that does not always trigger the problem (chances seem to improve if it is opened in a new browser tab or window). Chances also seem to improve if used on a more complex app. |
Closing in favor of #5826, it has some extra details about the issue cause. |
same here without ssl on local.
|
Had the same problem here. |
The same problem too. Please help!!!!! To disable this warning use "ng set --global warnings.versionMismatch=false". Angular CLI: 1.6.2 @angular/cli: 1.6.2 |
@extrablind What IDE are you using? I'm getting this too. I run
with
|
@silentsnooc : working with atom. Double check auto format options from Prettier / beautifier add on... or native atom settings. Regards. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Windows 10, Chrome (Version 54.0.2840.71 m)
Versions.
Repro steps.
When serving my app with beta.18's new
--ssl
option, I get an endless reload-loop in Chrome. I.e.: I navigate tohttps://localhost:4200/
, the app loads and initializes completely and then reloads (as if I had hit F5).Angular CLI's output does change (stays at
webpack: bundle is now VALID.
). The issue might have been caused by files being touched by another process, triggering a rebuild in angular-cli and thus a reload in the browser. This does not happen.I can reproduce the problem with the "blank" app as created by

ng init
, but it does not occur everytime like it does with my (more complex) app:The problem does not occur in Firefox. I tried this Chrome's incognito mode to avoid plugin-problems, but the problem still occurs.
Also, when I switch away to another tab, the cycle stops. The reload itself still works: when I change a file on the filesystem, angular-cli correctly picks that up, rebuilds, triggers a reload and the browser is not sent into the infinite loop.
It feels like this is a timing issue between the reload-script running in the browser and the application's initialization.
As a sidenote: I tried to disable live-reloading (using
--live-reload=false
) but that does not seem to work.The log given by the failure.
No error is logged, neither on the command line nor in the browser's console.
Chrome's devtools' network view looks like this:

The text was updated successfully, but these errors were encountered: