Joaquín Sánchez

Results 1398 comments of Joaquín Sánchez

is your `registerServiceWorker.js` inside the src folder? if added to the public folder Vite will just copy it to the dist folder (forgot it, it is in the src folder)

Add `filename: 'service-worker.js'` to pwa plugin options or change `registerServiceWorker.js` to use `sw.js` instead `service-worker.js`. FYI: if your application already deployed with old service worker (via `register-service-worker`) check this entry...

do you have your application deployed? can your shared the repo if public? find me on discord

The failing resource url should be shown in the console, you must fix the error: the problem is when the sw is installing, sw will download all resources in the...

If you're using any pwa virtual module, the `onRegisterError` callback should be called

Uhmm, so the sw is green with the red circle error in dev tools. I'll check workbox options...

what do you mean? do you have the link in the index.html? if so just remove it

Why are you exposing `update` instead `updateServiceWorker`? I need to check if calling `await serviceWorkerRegistration()?.update();` will skip the awaiting state (this call seems to be the problem). In the meantime,...

Can you try removing the interval in your local? I Will check your reproduction tmr (refresh the page once built second time).

You Will need to avoid calling update if the sw also waiting to be activated, I guess the update will also trigger the event to active it