Skip to content

ng add @angular/pwa fails #11662

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
bjornharvold opened this issue Jul 26, 2018 · 12 comments
Closed

ng add @angular/pwa fails #11662

bjornharvold opened this issue Jul 26, 2018 · 12 comments

Comments

@bjornharvold
Copy link

bjornharvold commented Jul 26, 2018

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search issues before submitting

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [x ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Angular CLI: 6.1.0
Node: 10.7.0
OS: darwin 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-ng-packagr 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
@ngtools/json-schema 1.1.0
@ngtools/webpack 6.1.0
@schematics/angular 0.7.0
@schematics/update 0.7.0
ng-packagr 3.0.3
rxjs 6.2.2
typescript 2.7.2
webpack 4.9.2

Repro steps

ng new something
cd something
ng add @angular/pwa

The log given by the failure

Installing packages for tooling via npm.
+ @angular/[email protected]
added 2 packages from 2 contributors and audited 29129 packages in 7.355s
found 13 vulnerabilities (9 low, 4 high)
  run `npm audit fix` to fix them, or `npm audit` for details
Installed packages for tooling via npm.
Path "/ngsw-config.json" already exist.

Desired functionality

Service worker being added successfully to my project

@bjornharvold bjornharvold changed the title ng add @angular/pwa fails on Angular CLI 6.1.0 ng add @angular/pwa fails Jul 26, 2018
@proeben
Copy link

proeben commented Jul 26, 2018

Same problem here. Is it related to 6.1.0? It just came out, probably not tested.
I have Node 8.11 as a difference to the above configuration.

@batbrain9392
Copy link

@proeben : The problem wasn't there with the previous cli version I had - 6.0.8

@gkalpak
Copy link
Member

gkalpak commented Jul 26, 2018

Duplicate of #11640.

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

guysenpai commented Jul 26, 2018

I got the same error after getting latest update

_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 6.1.1
Node: 9.11.2
OS: darwin x64
Angular: 6.1.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.7.1
@angular-devkit/build-angular     0.7.1
@angular-devkit/build-optimizer   0.7.1
@angular-devkit/build-webpack     0.7.1
@angular-devkit/core              0.7.1
@angular-devkit/schematics        0.7.1
@angular/cli                      6.1.1
@angular/pwa                      0.7.1
@ngtools/webpack                  6.1.1
@schematics/angular               0.7.1
@schematics/update                0.7.1
rxjs                              6.2.2
typescript                        2.7.2
webpack                           4.9.2

@bernhardpointner
Copy link

Same issue v6.1.1

@html5ravi
Copy link

Same issue here too CLI V6.1.1

@ix-xerri
Copy link

ix-xerri commented Aug 12, 2018

I've tried this on a vanilla Ionic 4 beta 2 (latest) installation and I get Path "/ngsw-config.json" already exist.. I also tried to install 0.8.0-beta.2 and I get the same thing.

@paulimfavarato
Copy link

yep, it doesn't work on v6.1.1 :(

@cc-xerri
Copy link

cc-xerri commented Aug 13, 2018

Got it to work with @angular/cli": "^6.2.0-beta.2 and @angular/pwa": "^0.8.0-beta.2

@gkalpak
Copy link
Member

gkalpak commented Aug 13, 2018

Since this issue has been marked as duplicate of #11640, you might want to check out #11640 for the current state and suggestions (e.g. #11640 (comment) 🙈).

@schankam
Copy link

I will wait the 6.2.0 to be release and PWA 0.8.0 to be release personally.... This issue has been around for 3 weeks, seriously that is ridiculous...

@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