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

ServiceWorkerRegistration is not defined #173

Open
dudedigital opened this issue Oct 21, 2022 · 5 comments · May be fixed by #182
Open

ServiceWorkerRegistration is not defined #173

dudedigital opened this issue Oct 21, 2022 · 5 comments · May be fixed by #182

Comments

@dudedigital
Copy link

Thank you for fixing Illegal invocation. I was able to use 4.0.0-next.2 with Vite and Vue 3 components locally. After building for production through Vite (which compiles using rollup), I encountered a new error when testing locally on Chrome/Firefox:

image

image

Just an FYI, 4.0.0-next.0 seems to work locally through Vite and after building for production.

@markcellus
Copy link
Owner

Hmm that's odd. Does it work without Vite?

@VikashLoomba
Copy link

Having this same problem on nextjs

@marsjaninzmarsa
Copy link

Same issue here, on Chrome/Firefox and with webpack for build/watch.

@yuu2lee4
Copy link

ServiceWorkerRegistration is only work in https

gpoole added a commit to gpoole/cookie-store that referenced this issue Jun 7, 2023
@gpoole gpoole linked a pull request Jun 7, 2023 that will close this issue
@card-b
Copy link

card-b commented Aug 14, 2024

Just wanted to bump this because the missing ServiceWorkerRegistration is causing full crashes in all WkWebView browser views on iOS. Most in-app browsers (such as Facebook and Instagram) use the webview, so I'm seeing all page loads fail in webviews.

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

Successfully merging a pull request may close this issue.

6 participants