cookie-store icon indicating copy to clipboard operation
cookie-store copied to clipboard

ServiceWorkerRegistration is not defined

Open dudedigital opened this issue 3 years ago • 5 comments
trafficstars

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.

dudedigital avatar Oct 21 '22 15:10 dudedigital

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

markcellus avatar Oct 21 '22 21:10 markcellus

Having this same problem on nextjs

VikashLoomba avatar Dec 01 '22 23:12 VikashLoomba

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

marsjaninzmarsa avatar Mar 01 '23 15:03 marsjaninzmarsa

ServiceWorkerRegistration is only work in https

yuu2lee4 avatar Mar 24 '23 06:03 yuu2lee4

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.

card-b avatar Aug 14 '24 19:08 card-b