-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Description
Which @angular/* package(s) are the source of the bug?
service-worker
Is this a regression?
Yes
Description
I run an Angular application with version 14.2, and I encouter problems with Safari on iPhones and iPads running 16.4 or higher.
The issue I'm having is that my application sometimes (really sometimes) shows the white page of death and sometimes Safari shows the Error: 'FetchEvent.respondWith received an error: TypeError: Internal error' without any further information. The app uses the angular service worker (for PWA support) and from what I have read on earlier issues with this kind of error, it might be cache related. Reloading the page solves this issue.
I'm really clueless at the moment how I can even work around this problem.
EDIT:
I was able to reproduce it on angular.io after a lot of refreshes on my Mac:
(Message is in dutch, saying it can't load the page)
So it seems like there is some bug with the service worker in combination with Safari in general.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
FetchEvent.respondWith received an error: TypeError: Internal error
Please provide the environment you discovered this bug in (run ng version)
Angular CLI: 14.2.11
Node: 16.10.0
Package Manager: npm 7.24.0
OS: win32 x64
Angular: 14.2.7
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router
... service-worker
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1402.11
@angular-devkit/build-angular 14.2.11
@angular-devkit/core 14.2.11
@angular-devkit/schematics 14.2.11
@angular/cdk 14.2.5
@angular/cli 14.2.11
@schematics/angular 14.2.11
rxjs 7.5.7
typescript 4.7.4
Anything else?
No response