question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Service worker generation failed (after updating to 13.3.5)

See original GitHub issue

Which @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

  1. Created a new angular app using ng new
  2. Added PWA to project using ng add @angular/pwa
  3. 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:closed
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
alan-agius4commented, May 2, 2022

In that case, the is a Universal issue.

1reaction
submarines-andcommented, May 2, 2022

@mazlano27 do you have any of the following for your setup:

  1. Yarn workspaces
  2. Multiple angular projects

Edit: nvm, saw your reproduction now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found