Please provide us with the following information:
OS?
Win 10
Versions.
$ ng --version
@angular/cli: 1.0.0-rc.1
node: 6.9.4
os: win32 x64
@angular/common: 2.4.9
@angular/compiler: 2.4.9
@angular/core: 2.4.9
@angular/forms: 2.4.9
@angular/http: 2.4.9
@angular/platform-browser: 2.4.9
@angular/platform-browser-dynamic: 2.4.9
@angular/router: 3.4.9
@angular/cli: 1.0.0-rc.1
@angular/compiler-cli: 2.4.9
Repro steps.
Whilst running ng serve --host 0.0.0.0, webpack sometimes decides to inexplicably go crazy and recompile constantly, even though no files have changed.
I can't figure a trigger pattern - it just seems to do it randomly; sometimes it refreshes once, other times it refreshes 50 times in a row then settles for a bit. Once webpack has finished it's frenzy, my browsers all refresh. As you can imagine, this makes testing really difficult as browsers sometimes refresh in the middle of form input.
Things I think it might be (clutching at straws):
- It might be triggered when a new npm package is recently added, though I can't confirm this
- It may also be related to when there is an error in the project (though there are currently no errors in the project, and it's going crazy atm)
- It may be triggered when I am focusing on another browser window (it's going crazy while I type this)
Restarting ng serve does not always rectify the issue, but it seems to eventually make it workable if I do it enough.
Gif of the repro here:
https://www.dropbox.com/s/as67bk4wt3b2b0n/webpack.recompile.gif?dl=0
I have recently upgraded angular cli, but this issue was occurring before the upgrade too.
The log given by the failure.
No error, just unexpected behaviour.
Mention any other details that might be useful.
I can provide a full zip of my project to see if you can reproduce it, but not publicly - please let me know if there's a secure place to upload.
What I tend to do is:
- npm / yarn start (happens regardless of which I use)
- work on project
- Issue will start to occur at some point
It's also worth mentioning that I'm running ng serve via git bash (MingW64) in a ConEmu wrapper, though this has also happened in a raw git bash window.
OS?
Win 10
Versions.
$ ng --version
@angular/cli: 1.0.0-rc.1
node: 6.9.4
os: win32 x64
@angular/common: 2.4.9
@angular/compiler: 2.4.9
@angular/core: 2.4.9
@angular/forms: 2.4.9
@angular/http: 2.4.9
@angular/platform-browser: 2.4.9
@angular/platform-browser-dynamic: 2.4.9
@angular/router: 3.4.9
@angular/cli: 1.0.0-rc.1
@angular/compiler-cli: 2.4.9
Repro steps.
Whilst running
ng serve --host 0.0.0.0, webpack sometimes decides to inexplicably go crazy and recompile constantly, even though no files have changed.I can't figure a trigger pattern - it just seems to do it randomly; sometimes it refreshes once, other times it refreshes 50 times in a row then settles for a bit. Once webpack has finished it's frenzy, my browsers all refresh. As you can imagine, this makes testing really difficult as browsers sometimes refresh in the middle of form input.
Things I think it might be (clutching at straws):
Restarting
ng servedoes not always rectify the issue, but it seems to eventually make it workable if I do it enough.Gif of the repro here:
https://www.dropbox.com/s/as67bk4wt3b2b0n/webpack.recompile.gif?dl=0
I have recently upgraded angular cli, but this issue was occurring before the upgrade too.
The log given by the failure.
No error, just unexpected behaviour.
Mention any other details that might be useful.
I can provide a full zip of my project to see if you can reproduce it, but not publicly - please let me know if there's a secure place to upload.
What I tend to do is:
It's also worth mentioning that I'm running
ng servevia git bash (MingW64) in a ConEmu wrapper, though this has also happened in a raw git bash window.