Path “/ngsw-config.json” already exists

  • A+
Category:Languages

I have created a new angular project. Then I add

ng add @angular/pwa I got an error like this even I can't find the ngsw-config.json file

Path "/ngsw-config.json" already exist.

In angular CLI version is 6.1.1.

Invalid rule result: Function().

In angular CLI version is 6.0.3

 


Try to install the CLI version 6.0.8 and then install in a clean project try ng add @angular/pwa@0.6.8

Seems like the error hasn't been solved by the core team so in the meanwhile we have to use a lower version

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: