-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt Compatibilty 4 Glob error #176
Comments
what's your pwa configuration? |
Just manifest with icons and short name and name and description. |
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) |
Hey @userquin yip! that is the issue! Build fine when using the nuxt 4 compat template! |
@userquin any temp workaround. What can I set the srcdir as? |
try changing EDIT: check where is the sw.js, maybe you need to change |
You need to change both, |
If you're using SSR (ssr: true or not configured or running |
am using ssr, not present in |
I tried to change both and set with |
Add this in your nuxt config file: import { createResolver } from '@nuxt/kit' // <== it is @nuxt/kit not @nuxtjs/kit
const { resolve } = createResolver(import.meta.url)
const outDir = resolve('./.output/public') |
that wont work nuxtjs kit is not available in nuxt config if not module |
or import { fileURLToPath } from 'node:url'
import { resolve } from 'node:path'
const outDir = fileURLToPath(new URL('./.output/public', import.meta.url)) |
Use |
Nope, sorry - none of this works. of course type is set to module - but nuxt kit is only availble as far as i understand in an actula nuxt module context? @danielroe any simple workaround for the moment? I see you did the nuxt 4 compat version for the scaffold cli |
If repo created using |
Hey. Of course have quite a few projects running on v4 compact for about 3 months already! I think that the specific nuxt module is not compatible with v4 yet. Even though when scaffolding it is since it isn't using the same module? |
🙏 provide a minimal reproduction with your issue, I will check what's happening... |
seems like this was a cache issue was using experimntal build cache on swapover from Nuxt 3 to 4 - which for some reason even after setting to false was persisting in production - this is not a bug as far as i can tell. |
Hi,
Hope you well.
Been getting this on all Nuxt 4 builds. Any clues?
The text was updated successfully, but these errors were encountered: