question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng serve compiling again and again without any saving changes

See original GitHub issue

Bug 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

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alan-agius4commented, Dec 4, 2018

@vovikdrg are you including the dist folder in the typescript compilation by any chance ie, adding it in the tsconfig.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-app and 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.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 9, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found