Service worker generation failed (after updating to 13.3.5)
See original GitHub issueWhich @angular/* package(s) are the source of the bug?
Don’t known / other
Is this a regression?
Yes
Description
After upgrading to v13.3.5, the project fails to build.
Please provide a link to a minimal reproduction of the bug
https://github.com/mazlano27/repro-app run → npm run prerender
For the repro
- Created a new angular app using ng new
- Added PWA to project using ng add @angular/pwa
- Added SSR using ng add @nguniversal/express-engine
Please provide the exception or error you saw
✖ Service worker generation failed.
EACCES: permission denied, opendir '/usr/sbin/authserver'
Please provide the environment you discovered this bug in (run ng version
)
Angular CLI: 13.3.4
Node: 16.13.2
Package Manager: npm 8.5.4
OS: darwin arm64
Angular: 13.3.5
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, material, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1303.4
@angular-devkit/build-angular 13.3.4
@angular-devkit/core 13.3.4
@angular-devkit/schematics 13.3.4
@angular/cli 13.3.4
@angular/fire 7.3.0
@nguniversal/builders 13.1.0
@nguniversal/express-engine 13.1.0
@schematics/angular 13.3.4
rxjs 6.6.7
typescript 4.4.4
Anything else?
After reverting back to v13.3.1, the error goes away.
Issue Analytics
- State:
- Created a year ago
- Comments:8
Top Results From Across the Web
Service worker generation failed (after updating to 13.3.5) #2627
After reverting back to v13.3.1, the error goes away.
Read more >@angular/service-worker - npm
Start using @angular/service-worker in your project by running `npm i @angular/service-worker`. There are 183 other projects in the npm ...
Read more >Service worker in production - Angular
The service worker either returns a cached response or sends the request to the server, depending on the state and configuration of the...
Read more >Upgrade to Angular 13 : Error - NGCC failed - Stack Overflow
I've got this error: Unknown arguments: use-program-dependencies, useProgramDependencies An unhandled exception occurred: NGCC failed.
Read more >@angular-devkit/architect | Yarn - Package Manager
@angular-devkit/build-angular. Commit, Type, Description. ccc8e0350, fix, display actionable error when a style does not exist in Karma builder.
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 FreeTop 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
Top GitHub Comments
In that case, the is a Universal issue.
@mazlano27 do you have any of the following for your setup:
Edit: nvm, saw your reproduction now.