4

Angular keeps automatically reloading when using:

ng serve This behaviour only happens on my computer.

iMac Late 2013 OS: OSX High Sierra

axelferreira
  • 1,990
  • 1
  • 12
  • 10

3 Answers3

9

I had the project in my Documents folder which is synced to iCloud. 'ng serve' would reload when iCloud syncs the project folder.

Solution: Move the project out of the iCloud folder.

This took me a lot of time to figure out, so I hope this helps.

axelferreira
  • 1,990
  • 1
  • 12
  • 10
2

For me the problem turned out to be the port I was using. It took me forever to figure it out because I had been using that port 4202 for that app for a long time. But suddenly it was causing this issue. I served the app on a different port and it worked fine. I could find nothing on my system (Ubuntu 22.10) using that port, so I have no idea how that was manifesting itself.

crowmagnumb
  • 6,621
  • 9
  • 33
  • 42
0

Just to clear it out, i had the same issue tough it is temporary because when iCloud will finish the sync the endless refresh will be over

Kashkashio
  • 487
  • 5
  • 10