-
Notifications
You must be signed in to change notification settings - Fork 32
PWA does not seem to work with rc-7 (Vite 3) #32
Comments
Also having issues... |
Same here. The manifest file is not available under the root link |
Hi, I'm off for almost 2 weeks so I won't be able to take a look quickly. This is a framework upstream issue which indeed may be caused by Vite upgrade. /cc @pi0 |
Has anyone found a solution for this? |
unfortunately not for the moment @brambekkers |
I could run PWA in dev mode however when I build my project, the PWA manifest gets replaced by the Nuxt manifest.
|
Hi, I'm back from my days off and will try to work on a fix this week. |
Likely solved by nuxt/framework#7021 (try on edge) |
If anyone want to try the upstream fix, you can try this in your {
"devDependencies": {
- "nuxt": "^3.0.0-rc.8"
+ "nuxt": "npm:[email protected]"
}
} |
UpdateYou can now try with last Release candidate version : {
"devDependencies": {
- "nuxt": "^3.0.0-rc.8"
+ "nuxt": "^3.0.0-rc.9"
}
} This issue should be resolved. |
Perfect now we can close this issue |
Ill have the same issue. No Service worker and no start url. I have workbox enabled. |
Gonna have a closer look with the help of the framework team. |
Hi! FYI, this module requires ssr on. After building with upgraded nuxt, I advise to clear your cache. |
Why does it require ssr on? |
To serve manifest.json ;) |
Thanks for fixing!
|
Is this somehow a limitation with Nuxt 3? The original |
I will consider a solution to have the module working with As a reminder, having Workbox running in development is not recommended and should be used only for testing some behaviors locally. Cause be aware that having it enabled will make your Nuxt application serve cached files through the Service Worker and therefore you would need to empty cache often when developing. Also, if you have a requirement to use Workbox in development, please use Private Window feature of your favorite browser to prevent anything to be cached the next time you open the app without it enabled. |
v0.5.0 is out ! |
Reproduction steps
Lighthouse
Upon upgrading to rc-7, my pwa is lo longer installable. This might be because Vite was updated to version 3.
The text was updated successfully, but these errors were encountered: