angular pwa install fails
See original GitHub issuei have added the pwa with
npm install @angular/pwa --save-dev nx g @angular/pwa:ng-add --project *project-name*
in my project setup i have a folder structure with a folder apps which has 4 separate applications each having their own index.html and environments etc i want to add pwa support to one of the projects in that structure but i am receiving this error
> NX Generating @angular/pwa:ng-add
[NX] Angular devkit readJsonWorkspace fell back to Nx workspaces logic
Workspace extension with invalid name (targetDependencies) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
[NX] Angular devkit called `writeWorkspace`, this may have had unintended consequences in angular.json
[NX] Double check angular.json before proceeding
[NX] Angular devkit readJsonWorkspace fell back to Nx workspaces logic
Workspace extension with invalid name (targetDependencies) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
Project extension with invalid name (files) found.
TypeError: this.host.readText is not a function
at new JSONFile
Issue Analytics
- State:
- Created a year ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Adding @angular/pwa not working on angular CLI
5 Answers 5 · Uninstall the cli: npm uninstall -g angular-cli · Clear the npm cache: npm cache verify · Reinstall the angular...
Read more >Error on ng add @angular/pwa · Issue #10469 - GitHub
Observed behavior. $ ng add @angular/pwa Installing packages for tooling via npm. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.2 ...
Read more >Angular PWA, install and configure - DEV Community
1. Create an Angular application · 2. Add @angular/pwa package · 3. Understand the files added/modified by @angular/pwa package · 4. Run the ......
Read more >ng add @angular/pwa issues : r/Angular2 - Reddit
Attempting to deploy an Angular/Ionic PWA project via a CI/CD pipeline, which passes fine but visiting the site reveals following error: Failed ......
Read more >@angular/pwa - npm
Enables service worker builds in the Angular CLI. Imports and registers the service worker in the app module. Adds a web app manifest....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

i pulled all the newest changes and was still getting the same error i downgraded my pwa version to @13.3.9 to be compatible with current angular version else the error gets throws where you could try use --legacy-peer-deps to fix so just downgraded the version seems to now go though and not give that same issue any more now sitting with this issue
`> NX Generating @angular/pwa:ng-add
[NX] Angular devkit called
writeWorkspace, this may have had unintended consequences in angular.json [NX] Double check angular.json before proceeding SchematicsException [Error]: Could not read file (/apps/spreekuur/src/undefined.ts).Pass --verbose to see the stacktrace. `
This should be fixed by https://github.com/nrwl/nx/commit/8c393b5660eba4d8404b8194ff139497aa1636fa 🙂