ng serve compiling again and again without any saving changes
See original GitHub issueBug Report or Feature Request (mark with an x)
- [x ] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x)
- [ ] new
- [ ] build
- [x ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
Windows 10 @angular/cli: 7.1.0 node: 8.9.4 npm: 5.6.0
Repro steps
run ng serve --disable-host-check after some time it will start compiling again and again without any changes
Desired functionality
Only compile once after change made by me.
Mention any other details that might be useful

Issue Analytics
- State:
- Created 5 years ago
- Comments:19 (5 by maintainers)
Top Results From Across the Web
[ng13] ng serve auto compiling infinitely without any changes
I've got the same issue for even angular new version 13.0.3 :( Why recompile again and again, also why .angular cache folder is...
Read more >Vscode ng serve compiling again and again - Stack Overflow
On windows 10 ng serve keeps compiling again and again without saving any changes. Even when I switch between two files in vscode...
Read more >Ng Serve: solution keeps on re-compiling - Anthony Marques
Where no changes have been made or saved, but the console keeps on compiling every now and again..it kinda looks something like this....
Read more >ng serve - Angular
Option Description Value Type Default Value
‑‑hmr Enable hot module replacement. boolean false
‑‑host Host to listen on. string localhost
‑‑open Opens the url in default...
Read more >Creating and Running Angular Project in Visual Studio Code
In this tutorial session, we will learn to create Angular Projects in Visual Studio Code. Angular is a popular JavaScript library developed ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@vovikdrg are you including the
distfolder in the typescript compilation by any chance ie, adding it in thetsconfig.json?It would be great if you can you setup a minimal repro please?
You can read here why this is needed. A good way to make a minimal repro is to create a new app via
ng new repro-appand adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.This might be related to your directory structure so its really important to get an accurate repro to diagnose this.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.