Joaquín Sánchez
Joaquín Sánchez
sentry an pwa plugin or pwa plugin integrations cannot be used with `generateSW` strategy, check: https://github.com/vite-pwa/nuxt/issues/132
add `workbox-window` to your dev dependencies
Try using dynamic import inside launch instead static import here: https://github.com/censujiang/vite-plugin-pwa-with-uniapp-test/blob/main/src/App.vue#L4C53-L4C56 Why are you registering the sw twice (the virtual will register the sw: https://github.com/censujiang/vite-plugin-pwa-with-uniapp-test/blob/main/src/App.vue#L8)? Anyway, I haven't checked what's...
> You mean I just need to register manually and set the relevant options? Remove virtual pwa call (and static import) and register the sw yourself: https://vite-pwa-org.netlify.app/guide/service-worker-without-pwa-capabilities.html#registering-of-the-service-worker-in-your-app
Weird, this is the code in the entry point: ```js const {useRegisterSW: e} = await t((()=>import("..-..-..-..-@vite-plugin-pwa-virtual:pwa-register-vue.911fca92.js")), [], import.meta.url); ```
Using your SB playground and registering the sw manually seems to work: https://stackblitz.com/edit/github-rzyq4b?file=src%2FApp.vue
No idea, I'll check your repo later on my local
I tried on my local using latest next version (`3.0.0-alpha-4000020231227002`) but still not working, enabling Vite log (`logLevel: 'info'`) same result, `..-..-..-..-@vite-plugin-pwa-virtual:pwa-register-vue.20ccab0d.js` is empty: 
In fact, the file is there but without extension (`:` is invalid in Window FS): 
If `@dcloudio/vite-plugin-uni` is relying on plugins position, it is wrong, Vite 3/4 included that change in 3.1 IIRC, check https://github.com/vitejs/vite/discussions/13175 (pwa build plugin using sequential: https://github.com/vite-pwa/vite-plugin-pwa/blob/main/src/plugins/build.ts#L36-L43) NOTE: that shouldn't be...