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

Build is not kicking off in a browser on save

Open kuncevic opened this issue 9 years ago • 81 comments

OS

Windows 10.

Versions.

angular-cli: 1.0.0-beta.28.3
node: 6.9.2
os: win32 x64
@angular/common: 2.4.5
@angular/compiler: 2.4.5
@angular/core: 2.4.5
@angular/flex-layout: 2.0.0-beta.4
@angular/forms: 2.4.5
@angular/http: 2.4.5
@angular/material: 2.0.0-beta.1
@angular/platform-browser: 2.4.5
@angular/platform-browser-dynamic: 2.4.5
@angular/router: 3.4.5
@angular/compiler-cli: 2.4.5

Repro steps.

Migrate from beta.24 to beta.28.3 Modify any file Click save Chrome dev console saying:

[WDS] App updated. Recompiling...
[WDS] Nothing changed.

The new build is not kicking off

So had to stop and reastart ng serve manually

kuncevic avatar Feb 02 '17 04:02 kuncevic

Same issue here.

BondiGeek avatar Feb 02 '17 04:02 BondiGeek

same issue here

idc1407 avatar Feb 02 '17 06:02 idc1407

Hello. I am having the same problem. Every change I make to ANY file causes me to end the command and do ng serve just to see the changes.

jwuliger avatar Feb 02 '17 06:02 jwuliger

Same issue. Recompile is not working properly.

And you are showing that next release will be production release.

ram3shyadav avatar Feb 02 '17 06:02 ram3shyadav

Hello, I have the same issue but ONLY with pipes, version beta 26

ghost avatar Feb 02 '17 06:02 ghost

Same issue here on Win 10

abeagley avatar Feb 02 '17 06:02 abeagley

Beta 28 is broken af...

danielsogl avatar Feb 02 '17 07:02 danielsogl

This issue seems to affect new .ts files or changes in any .ts files as well. Template changes in .html files update, but underlying script files do not.

WouterSpaak avatar Feb 02 '17 08:02 WouterSpaak

im having this same issue in win10

leonel-torrealba avatar Feb 02 '17 09:02 leonel-torrealba

Same issue here...

dev avatar Feb 02 '17 09:02 dev

Anybody tried beta 29?

Meligy avatar Feb 02 '17 09:02 Meligy

Note that beta 29 comes with a new package name @angular/cli instead of angular-cli.

Meligy avatar Feb 02 '17 09:02 Meligy

@angular/cli has the same problem. Changes are not detected. Especially difficult when a full rebuild takes more than 30 seconds

PierreDuc avatar Feb 02 '17 09:02 PierreDuc

Anybody else having a hard time reverting back to beta 26? I've gotten so far as to remove all node_modules global, local and cache and reverting to what I know was a working state of my project, but still no changes are detected when I run ng serve.

PierreDuc avatar Feb 02 '17 10:02 PierreDuc

hmm..

On Mac OS latest and NPM 6.x latest, I was able to get a new beta.29 project to detect changes to:

  • A pipe used in app.component.html (details: https://github.com/angular/angular-cli/issues/4336#issuecomment-276911060)
  • app.component.html itself
  • The title property in app.component.ts

Could this be OS related or upgrade related?

Any concrete steps to reproduce on a new project?

Meligy avatar Feb 02 '17 10:02 Meligy

npm install --save @ngtools/[email protected] seems to have fixed it for me. thanks to @beeman for his solution in #4329.

dev avatar Feb 02 '17 10:02 dev

That explains why it works for me. The version I get on a new project is @ngtools/[email protected].

Meligy avatar Feb 02 '17 10:02 Meligy

Yep. There was an issue previously with webpack 1.2.5 which was fixed in 1.2.6 a couple of hours ago. A new angular-cli wasn't released, just a new version of @ngtools/webpack, so make sure you've got that guys

intellix avatar Feb 02 '17 10:02 intellix

Well, that explains why reverting to an old version doesn't work. Older cli versions will still download the new webpack version

PierreDuc avatar Feb 02 '17 10:02 PierreDuc

It still doesn't work for me. Started new project, and still same issue.

angular-cli: 1.0.0-beta.28.3 node: 6.9.5 os: win32 x64 @angular/common: 2.4.5 @angular/compiler: 2.4.5 @angular/core: 2.4.5 @angular/forms: 2.4.5 @angular/http: 2.4.5 @angular/platform-browser: 2.4.5 @angular/platform-browser-dynamic: 2.4.5 @angular/router: 3.4.5 @angular/compiler-cli: 2.4.5 @ngtools/webpack: 1.2.6

aprades avatar Feb 02 '17 11:02 aprades