angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng serve not detecting file changes for recompiles

Open aruncnt opened this issue 9 years ago • 6 comments

@angular/cli: 1.0.3 node: 6.12.0 os: linux x64 @angular/common: 4.4.6 @angular/compiler: 4.4.6 @angular/core: 4.4.6 @angular/forms: 4.4.6 @angular/http: 4.4.6 @angular/platform-browser: 4.4.6 @angular/platform-browser-dynamic: 4.4.6 @angular/router: 4.4.6 @angular/cli: 1.0.3 @angular/compiler-cli: 4.4.6

aruncnt avatar Nov 29 '17 08:11 aruncnt

There wasn't much detail in your issue but I think it's overall a duplicate of https://github.com/angular/angular-cli/issues/1610. Please have a look there for common causes of reload not working.

filipesilva avatar Nov 30 '17 10:11 filipesilva

Most of the times in Linux, ng serve --watch or ng build --watch doesn't work if the directory doesn't have sufficient permissions.

The solution is either to provide the necessary permissions or to use sudo instead.

saimzishan avatar May 02 '19 04:05 saimzishan

what are the necessary permissions then?

lawipac avatar May 21 '19 09:05 lawipac

try with sudo ng serve.

saimzishan avatar May 21 '19 10:05 saimzishan

echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches

andreadompe avatar May 31 '19 09:05 andreadompe

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.