Angular-cli: ng serve doesn't properly watch files that are in subdirectories

Created on 27 Oct 2016  路  2Comments  路  Source: angular/angular-cli

angular-cli does not properly watch files that are in subdirectories ..
My components are located in src/app/component/. To make them be correctly watched, i usually reinstall angular cli with the following commands :

npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli@latest

and

rm -rf node_modules dist tmp
npm install --save-dev angular-cli@latest
ng init

this works fine, when I do so my project files are perfectly watch. But when I reboot, I run ng serve, components files are no longer watched..
How to make angular correctly watch my component files located in subdirectories ?
When I move a component to src/app/, the component is correctly watched.

OS?

Xubuntu 16.04 x64

Versions.

angular-cli : 1.0.0.beta-18
node : 6.8.1

Most helpful comment

WebStorm was showing me a warning which led me to this link
https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
I increased the watch limit and my problem has been resolved !

All 2 comments

WebStorm was showing me a warning which led me to this link
https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
I increased the watch limit and my problem has been resolved !

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._

Was this page helpful?
0 / 5 - 0 ratings