Build is not kicking off in a browser on save
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
@aprades cd to your project and run npm install --save @ngtools/[email protected] in that directory
Great @aprades!
I freshly installed angular-cli npm uninstall -g angular-cli && npm i -g angular-cli and im getting the following warnings:
npm WARN optional Skipping failed optional dependency /angular-cli/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of rxjs@^5.0.1 but none was installed.
npm WARN @angular/[email protected] requires a peer of zone.js@^0.7.2 but none was installed.
Trying ng --version gives me a lot of Cannot find module 'reflect-metadata' Errors.
Is this related to the restructuring of the cli packages?
Previously it worked just fine.
@niklas-dahl The new npm name for the project is @angular/cli try:
npm install -g @angular/cli
Thanks, @legit . Installing @ngtools/[email protected] resolved my issue.
@RicardoVaranda that worked, but installing angular-cli should still work I guess,,
@niklas-dahl I believe it installs beta 28.3 instead of 29 if you use angular-cli.
Same as #4355 but replacing angular-cli: 1.0.0-beta.28.3 with @angular/cli: 1.0.0-beta.29
$ npm show @ngtools/webpack version 1.2.6
I don't see any release for beta 29. Latest is 28. How can this work?
@MickL try this: https://www.npmjs.com/package/@angular/cli
Is this issue fixed for beta 29?
I dont know, I just wanted to point you to the current beta
I don't have the issue with beta 29. The install procedure has changed a bit: npm install -g @angular/cli@latest
For what it's worth, it still doesn't work in beta 29 for me, but reverting to @ngtools/[email protected] does work
ng v
angular-cli: 1.0.0-beta.28.3 node: 6.9.2 os: win32 x64
npm uninstall -g angular-cli
npm cache clean
npm i -g @angular/cli@latest
...
ng v
@angular/cli: 1.0.0-beta.29 node: 6.9.2 os: win32 x64
ng new multimodule --routing--style=scss
cd multimodule
npm i -S @ngtools/[email protected]
Works fine!
I've got in to another trouble https://github.com/angular/angular-cli/issues/4380 after migrating my current project from beta.28.3 to beta.29
So I just rolled back to beta.28.3 for now + npm install @ngtools/[email protected] on top of it
Just tested with beta.30 which is coming with @ngtools/[email protected] is still having the the same issue.
[WDS] App updated. Recompiling...
[WDS] Nothing changed.
npm install @ngtools/[email protected] do not helps with beta.30
I am back to beta.28.3 + npm install @ngtools/[email protected] again.
@kuncevic same issue here, npm clean, reinstalled beta.30 and tested on a new blank project. Major issue, I'm going to revert to beta.28.3 Too bad because performance improved a lot in the last cycle.
For me, right now it only works with "@angular/[email protected]" and @ngtools/[email protected]