Replies: 3 comments 5 replies
-
|
can you provide minimal reproduction? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I’m facing an issue with my service worker not activating automatically after an app rebuild.
I’ve tried multiple approaches but can’t get past this “waiting to activate” state - I’d really appreciate any help or guidance.
Context :
Scenario :
npx serve dist/ -s -dnpm run build(I keep the server running).Setup
Here is the state of my files so far :
vite.config.ts:main.ts: I callregisterServiceWorkerright before mounting my app.registerServiceWorker.ts:src/service-worker.ts:Goal
My goal is to :
Question
Is there something I might be missing in my setup or in how vite-plugin-pwa works ? 🤔
Any guidance or best practice to handle this scenario would be super helpful ! 🙏
Thanks a lot for your time and help !
Beta Was this translation helpful? Give feedback.
All reactions