Error: Service Worker Fails to Register
See original GitHub issueDescribe the bug
When loading our app, we get the following error:
[MSW] Failed to register Service Worker (/mockServiceWorker.js).
message: [Exception: TypeError: Illegal invocation at DOMException.invokeGetter (<anonymous>:1:142)]
Environment
msw: 0.15.9
nodejs: 10.15.0
npm: 6.13.16
Browser: Chrome v81.0.4044.138 (Official Build) (64-bit)
Expected behavior
We’ve tried a number of fixes, but nothing has prevented the above error.
Any insight is greatly appreciated!
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Service Worker Registration Failed - Stack Overflow
I am currently working on service worker to handle push notification in browser. Currently I am having this "SW registration failed error":.
Read more >Service Worker registration failed with TypeError ... - GitHub
My application is not able to register the serviceworker and I am receiving the error that it's not finding the sw.js file.
Read more >Manifest V3 service worker registration failed - Google Groups
When the worker throws an error during its first execution task, it can't be registered and can't be opened to inspect the error...
Read more >Error Failed to register a ServiceWorker - WordPress.org
Hi,. I have set up a Web Push Platforms application with WordPress in my OneSignal account, but I have a problem when displaying...
Read more >1429714 - serviceWorker registration fails on many pages ...
Actual results: The registration of ServiceWorkers fails in many cases with the error "The operation is insecure.", even if the same Service Worker...
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
Hi @kettanaito, we’re still investigating this on our end and, until we can say otherwise, assume it’s due to the specifics of our app. Please don’t let it be a blocker to #104 or other issues… we’ll reach out when we have more information. Thank you 😃
Hi Nikhil,
I’m afraid I don’t remember the specifics, nor do I have access to the specific environment, anymore. I can say we were using neither Next.js nor local-ssl-proxy, however, so I don’t know how much our solution would applied to your situation.
Sorry I can’t be of more help!
Simon
On Thu, Jan 20, 2022 at 10:25 PM Nikhil Bhandarkar @.***> wrote: