Joaquín Sánchez

Results 1398 comments of Joaquín Sánchez

does your project empty spaces in the path? it seems you're using Windows, bad combination using spaces or accents in the path.

That's the problem with dual package exports using default module exports: we're working to move UnoCSS to ESM first/only with some dual CJS/ESM packages exports here https://github.com/unocss/unocss/pull/3380 Anyway, you can...

The problem is in UnoCSS, not in your application (current version is CJS): https://arethetypeswrong.github.io/?p=unocss%400.58.5 EDIT: we use `unbuild` and we need to patch some cjs packages, tsup works fine: check...

We need to do more tests, rn the logic is wrong, workbox-window logic in vite pwa is wrong (we reverted a commit a few months ago in pwa plugin), we...

The logic is not 100% correct, we have some "race" condition when using multiple clients (tabs or browser instances); the `offlineReadyVal` logic is wrong since that value is true when...

you're using `"vite-plugin-pwa/client",` in tsconfig file types, change it to `"vite-plugin-pwa/vue",` what version of the plugin are you using?

you can enable `pwa.client.installPrompt` option in pwa nuxt module options, then use `$pwa?.showInstallPrompt` to activate the custom install badge/dialog in the ui, when user click on install call `$pwa?.install()` https://vite-pwa-org.netlify.app/frameworks/nuxt.html

You cannot install PWA, you need to intercept the `beforeinstallprompt` ~~replacing the callback~~ using the `deferredPrompt` from `beforeinstallprompt` listener (preventing the browser behavior) , iirc the sw must be also...

Check this for example: https://github.com/elk-zone/elk/blob/main/components/pwa/PwaInstallPrompt.client.vue _From https://elk.zone_ ![imagen](https://github.com/vite-pwa/vite-plugin-pwa/assets/6311119/c7d830b0-0c4d-4aed-a9ed-47740a8dc3f3)

if you're using Nuxt it is fine, otherwise you'll need to use `$pwa` instead `useNuxtApp().$pwa` (both should work in nuxt)