Error adding `@angular/pwa` v0.7.0-rc.3
Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x)
- [x] add
Versions
> node --version
v8.11.3
> npm --version
5.6.0
> ng --version
Angular CLI: 6.1.0-rc.3
Node: 8.11.3
OS: win32 x64
Angular: 6.0.9
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.7.0-rc.3
@angular-devkit/build-angular 0.7.0-rc.3
@angular-devkit/build-optimizer 0.7.0-rc.3
@angular-devkit/build-webpack 0.7.0-rc.3
@angular-devkit/core 0.7.0-rc.3
@angular-devkit/schematics 0.7.0-rc.3
@angular/cli 6.1.0-rc.3
@angular/pwa 0.7.0-rc.3
@ngtools/webpack 6.1.0-rc.3
@schematics/angular 0.7.0-rc.3
@schematics/update 0.7.0-rc.3
rxjs 6.2.2
typescript 2.7.2
webpack 4.9.2
OS: Windows 10
Repro steps
npm install --global @angular/cli@nextng new test-appcd test-appng add @angular/pwa@next --project=test-app
The log given by the failure
Installing packages for tooling via npm.
+ @angular/[email protected]
added 2 packages in 12.443s
Installed packages for tooling via npm.
Path "/ngsw-config.json" already exist.
Npm dependencies are updated (including package.json and package-lock.json), but the add command is not completed (no ngsw-config.json, no manifest.json, no changes in index.html, etc).
Dispersia, this issue have reference to issues number 11465, 11666, 11662, 11663, 11655, 11839. Every of this issues have references too. We jump from issue to issue and back, and we see how are they "closed", but the issue was not really solved.
No, issue is not solved - I tried it yesterday (without tricks as downgrade and beta versions (because it can cause some another problem - I want to have libraries actual)) and the result was in my prev comment.
I confirm: it works with
npm install @angular/cli@next -g
...
ng add @angular/pwa@next
Version info:
Angular CLI: 6.2.0-beta.2
Node: 8.11.3
OS: darwin x64
Angular: 6.1.2
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, service-worker
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.8.0-beta.2
@angular-devkit/build-angular 0.8.0-beta.2
@angular-devkit/build-optimizer 0.8.0-beta.2
@angular-devkit/build-webpack 0.8.0-beta.2
@angular-devkit/core 0.8.0-beta.2
@angular-devkit/schematics 0.8.0-beta.2
@angular/cli 6.2.0-beta.2
@angular/pwa 0.8.0-beta.2
@ngtools/webpack 6.2.0-beta.2
@schematics/angular 0.8.0-beta.2
@schematics/update 0.8.0-beta.2
rxjs 6.2.2
typescript 2.9.2
webpack 4.16.5
I also just confirmed that it works with
npm install @angular/cli@next -g
...
ng add @angular/pwa@next
Although, now I get the following error when trying to add material using
ng add @angular/material
Your project is not using the default configuration for build and test. The Angular Material schematics can only be used with the default configuration
I can also report the issue that @reyco1 is experiencing. I suspect it is because of stable vs 'next' but here is my console output:
ng add @angular/material
Installing packages for tooling via yarn.
yarn add v1.9.4
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @angular/[email protected]" has unmet peer dependency "@angular/[email protected]".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ @angular/[email protected]
info All dependencies
└─ @angular/[email protected]
Done in 6.79s.
Installed packages for tooling via yarn.
Your project is not using the default configuration for build and test. The Angular Material schematics can only be used with the default configuration
@reyco1 I got no erros when using Snapshot Build npm install --save angular/material2-builds angular/cdk-builds angular/animations-builds
Still not working. Even downgrading CLI or everything else. Keeps showing "Path 'ngsw-config.json' already exists" and it doesn't...
Same here on #11853
Angular CLI: 6.2.0-beta.2 Node: 10.8.0 OS: win32 x64 Angular: 6.1.2 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router
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.