Reputation: 95
I'm trying to make a new pwa and I need to write things in angular-cli.json
.
I'm using
Angular CLI: 1.7.4
Node: 8.11.1
OS: win32 x64
Angular: 5.2.10.
After ng new pwaapp --service worker
there's not an angular-cli.json
file in the project folder.
Every idea is a breath of fresh air. thx
Upvotes: 0
Views: 2933
Reputation: 10110
I'm wondering if you are creating Angular 6 and not Angular 5.x, as Angular 6 don't have angular-cli.json anymore. Its angular.json. See if you have this file. If you are creating a new project at this time, Angular 6 is the latest stable with some improvements to PWA as well.
Here is a doc if you want to create an app first and then add PWA options after creating.
Upvotes: 4
Reputation: 1905
Well to start you are not using the command correctly.
You are using ng new pwaapp --service worker
while you should be using
ng new pwaapp --service-worker
which should generate an .angular-cli.json
file.
If not, then see if you @angular/cli global package is up to date.
If nothing works, add the the file yourself as referenced here: https://stackoverflow.com/a/45705204/3123228
Upvotes: 1