Angular: ng not watching for changes
Running Linux and noticed that ng serve
or ng test
don’t observe changes
and thus won’t reload/test automatically?
This might be caused by simply having too many files in your tree, causing your system to hit an internal limit. This limit can be raised using the following command:
echo 524288 | sudo tee /proc/sys/fs/inotify/max_user_watches
You’ll have to do this after every boot. Want it persistently? Use the following:
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf
sudo sysctl --system
Related
- Translation parameters in angular‑gettext (June 16, 2016)
- Custom attributes in angular‑gettext (August 14, 2015)
- Release notes: May 2014 (June 1, 2014)
- Release Notes: Apr 2014 (May 1, 2014)
- Release Notes: Mar 2014 (April 1, 2014)