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

Setting up PWA fails with cli 6.1.0

Open NCC1701M opened this issue 8 years ago • 5 comments

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.

NCC1701M avatar Jul 26 '18 07:07 NCC1701M

Duplicate of #11640.

gkalpak avatar Jul 26 '18 08:07 gkalpak

Path "/ngsw-config.json" already exist. same error shows

premmd94 avatar Jul 31 '18 16:07 premmd94

I have started using New Angular CLI, & strted working in PWA but I too get the same error..

ghost avatar Aug 09 '18 07:08 ghost

I had the same problem but got it solved by installing new loacal CLI npm install @angular/cli hope this will help

ompurwar avatar Aug 20 '18 23:08 ompurwar

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.