chirag sorathiya
chirag sorathiya

Reputation: 1243

angular 4 project does not reload itself when i save HTML, CSS or TS file

versions

Angular CLI: 1.6.1
Node: 8.2.1
OS: linux x64

And devDependencies like

"devDependencies": {
    "@angular/cli": "1.3.2",
    "@angular/compiler-cli": "4.0.0",
    "@angular/language-service": "4.2.4",
}

ng serve and ng serve --watch not working.

Upvotes: 1

Views: 1321

Answers (1)

hrdkisback
hrdkisback

Reputation: 908

I think you should Increase the amount of inotify watchers by running below command in console

$ sudo sysctl fs.inotify.max_user_watches=524288
$ sudo sysctl -p --system

You can refer this link for more https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers

See above link If you like to make your limit permanent, use:

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

Upvotes: 2

Related Questions