Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot register service worker TypeError: Failed to register a ServiceWorker #10

Open
inspiredlabs opened this issue Feb 2, 2023 · 0 comments

Comments

@inspiredlabs
Copy link

Hello again.

Last June/July I merged your repo into a new one, which worked across the board in Lighthouse: 100%.

So, vis-à-vis the current problem, I've merged the repo again using SvelteKit Version 1 (npm create svelte@latest my-app), and it works, but I get: Cannot register service worker TypeError in Chrome devtools.

Here's my progress:

What to look for in devtools:

cannot register service worker TypeError: Failed to register a ServiceWorker for scope ('https://lowenergy.vercel.app/') with script ('https://lowenergy.vercel.app/service-worker.js'): ServiceWorker script evaluation failed

&

cannot register service worker TypeError: Failed to register a ServiceWorker for scope ('https://lowenergy.vercel.app/') with script ('https://lowenergy.vercel.app/service-worker.js'): ServiceWorker script evaluation failed

&

cannot register service worker DOMException: Failed to register a ServiceWorker for scope ('https://lowenergy.vercel.app/') with script ('https://lowenergy.vercel.app/service-worker.js'): Operation has been aborted

It's not clear exactly HOW to register this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant