Setting up PWA fails with cli 6.1.0
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
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
Angular CLI: 6.1.0
Node: 8.11.2
OS: win32 x64
Angular: 6.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.7.0
@angular-devkit/build-angular 0.7.0
@angular-devkit/build-optimizer 0.7.0
@angular-devkit/build-webpack 0.7.0
@angular-devkit/core 0.7.0
@angular-devkit/schematics 0.7.0
@angular/cdk 6.4.1
@angular/material 6.4.1
@angular/pwa 0.7.0
@ngtools/webpack 6.1.0
@schematics/angular 0.7.0
@schematics/update 0.7.0
rxjs 6.2.2
typescript 2.7.2
webpack 4.9.2
Repro steps
Create an Angular project with Angular 6.1
After that run command ng add @angular/pwa
The log given by the failure
Path "/ngsw-config.json" already exist.
Desired functionality
PWA should be setted up
Current behavior
When installing PWA it fails with the error message
Path "/ngsw-config.json" already exist.
But, the file does not exists.
It was working with Angular <6.1 now with 6.1 it fails.
Duplicate of #11640.
Path "/ngsw-config.json" already exist. same error shows
I have started using New Angular CLI, & strted working in PWA but I too get the same error..
I had the same problem but got it solved by installing new loacal CLI
npm install @angular/cli
hope this will help
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.