Closed code3z closed 2 years ago
@code3z It looks like Chromium has changed the behavior of the background service worker. I moved the background page down next to the manifest, and things seem to work fine. :shrug:
We're focusing on v4 for now, new boilerplates and how-to guides are coming soon! I'll let you know when a Svelte guide is available. Sneak peak: HMR works great in v4.
Google search terms
manifest v3 service worker registration error, chrome manifest v3 service worker registration failed
Describe the bug
When I use this plugin, the service worker is compiled along with a script meant for auto reloading. The script looks like this:
When I remove this manually, everything works fine, but with the script, the service worker fails to register with an "unknown error."
I believe the
window
does not exist in a service worker.How do we reproduce?
Clone this repo: https://github.com/code3z/mv3-rollup-debug
Expected behavior
I expected the service worker to register.
Actual behavior
browser
polyfill)