Angular-cli: infinite loop with live reload build

Created on 15 Feb 2017  路  3Comments  路  Source: angular/angular-cli

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Windows 7

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.28.3
node: 6.9.5
os: win32 x64
@angular/common: 2.4.7
@angular/compiler: 2.4.7
@angular/core: 2.4.7
@angular/forms: 2.4.7
@angular/http: 2.4.7
@angular/platform-browser: 2.4.7
@angular/platform-browser-dynamic: 2.4.7
@angular/router: 3.4.7
@angular/cli: 1.0.0-beta.30
@angular/compiler-cli: 2.4.7

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

The app was copied from here : https://github.com/angular-starter-kit/ngx-starter-kit I don't know if it was created with the CLI or not.

The log given by the failure.

Normally this include a stack trace and some more information.

the initial ng serve seem to work well, but when I start to edit files I've got the following looping over and over in the CLI :

image

and in the chrome console :

image

Mention any other details that might be useful.

I was using visual studio code and it seem there is/was some similar issues with it (see https://github.com/angular/angular-cli/issues/2497 ). But the problem remain even when visual studio code is closed.
I'm behind a corporate proxy and I have to use cntlm in order to have the install command to download the dependencies. Also I have to run the command line as an admin (rigth clic on cmd.ewe / run as an adminsitrator) in order to have the permission to launch the serve command.


Thanks! We'll be in touch soon.

Most helpful comment

A bit late, but if anyone else encounter this issue, you can try a workaroung with the --poll option (https://github.com/angular/angular-cli/wiki/serve)

ng serve --poll 1000

All 3 comments

it turn out the antivirus (mcAffe) is messing with the files ... And I can't disable it on my machine :(

A bit late, but if anyone else encounter this issue, you can try a workaroung with the --poll option (https://github.com/angular/angular-cli/wiki/serve)

ng serve --poll 1000

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

Related issues

daBishMan picture daBishMan  路  3Comments

rwillmer picture rwillmer  路  3Comments

delasteve picture delasteve  路  3Comments

brtnshrdr picture brtnshrdr  路  3Comments

JanStureNielsen picture JanStureNielsen  路  3Comments