1

I'm running the app with ng serve -o. If I edit styles.scss and hit save then the app live reloads, but editing components (TS or HTML) does not trigger a reload.

No errors show up in in the developer console or in the CLI.

Thoughts?

Ole
  • 41,793
  • 59
  • 191
  • 359
  • which OS you're working in? – Ram Aug 31 '19 at 04:51
  • maybe this helps https://stackoverflow.com/questions/47075661/error-user-limit-of-inotify-watches-reached-extreact-build. – Fateme Fazli Aug 31 '19 at 05:20
  • @FatemeFazli you dam man!! Ooops - I mean Woooman!! That was it. I had to increase the inotify watches. Please provide that as the answer and I'll check it off. – Ole Aug 31 '19 at 12:46

1 Answers1

1

It happens because of limit of inotify watches and extra files will not be observed, you should increas amount of it.

For Debian, RedHat, or another similar Linux distribution, run:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

For ArchLinux, run:

echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system
Fateme Fazli
  • 11,582
  • 2
  • 31
  • 48