vite-pwa / nuxt

Zero-config PWA Plugin for Nuxt 3
https://vite-pwa-org.netlify.app/frameworks/nuxt
MIT License
453 stars 22 forks source link

Nuxt Compatibilty 4 Glob error #176

Open moshetanzer opened 5 hours ago

moshetanzer commented 5 hours ago

Hi,

Hope you well.

Been getting this on all Nuxt 4 builds. Any clues?

vite-pwa/vite-plugin-pwa#15 149.6 PWA v0.21.0
vite-pwa/vite-plugin-pwa#15 149.6 mode      generateSW
vite-pwa/vite-plugin-pwa#15 149.6 precache  3 entries (0.21 KiB)
vite-pwa/vite-plugin-pwa#15 149.6 files generated
vite-pwa/vite-plugin-pwa#15 149.6   ../.output/public/sw.js
vite-pwa/vite-plugin-pwa#15 149.6   ../.output/public/workbox-4723e66c.js
vite-pwa/vite-plugin-pwa#15 149.6 warnings
vite-pwa/vite-plugin-pwa#15 149.6   One of the glob patterns doesn't match any files. Please remove or fix the following: {
vite-pwa/vite-plugin-pwa#15 149.6   "globDirectory": "/app/.output/public",
vite-pwa/vite-plugin-pwa#15 149.6   "globPattern": "**/_payload.json",
vite-pwa/vite-plugin-pwa#15 149.6   "globIgnores": [
vite-pwa/vite-plugin-pwa#15 149.6     "**/node_modules/**/*",
vite-pwa/vite-plugin-pwa#15 149.6     "sw.js",
vite-pwa/vite-plugin-pwa#15 149.6     "workbox-*.js"
vite-pwa/vite-plugin-pwa#15 149.6   ]
vite-pwa/vite-plugin-pwa#15 149.6 }
userquin commented 3 hours ago

what's your pwa configuration?

moshetanzer commented 3 hours ago

Just manifest with icons and short name and name and description.

userquin commented 1 hour ago

Maybe we need to check v4 compat mode and use rootDir instead srcDir, will check it tmr.

Can you check it using create pwa https://vite-pwa-org.netlify.app/guide/scaffolding.html ? Select vue then Nuxt 4 and follow the wizard (update nuxt to latest verrsion 3.14.159 if required)

moshetanzer commented 47 minutes ago

Hey @userquin yip! that is the issue! Build fine when using the nuxt 4 compat template!