Skip to content

Setting up PWA fails with cli 6.1.0 #11666

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NCC1701M opened this issue Jul 26, 2018 · 5 comments
Closed

Setting up PWA fails with cli 6.1.0 #11666

NCC1701M opened this issue Jul 26, 2018 · 5 comments

Comments

@NCC1701M
Copy link

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.

@gkalpak
Copy link
Member

gkalpak commented Jul 26, 2018

Duplicate of #11640.

@gkalpak gkalpak closed this as completed Jul 26, 2018
@premmd94
Copy link

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

@ghost
Copy link

ghost commented Aug 9, 2018

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

@ompurwar
Copy link

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

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants