Closed Applelo closed 7 months ago
I'm getting the same error in the playground after updating nitropack
to 2.9.0
or higher, maybe related https://github.com/nuxt/nuxt/issues/26170.
I haven't checked further (yet) if this is related to .yml
files as you described.
I have added the a new reproduction (forked from the previous one) and change all .yml
file into .json
and it is working.
Now that https://github.com/unjs/nitro/pull/2275 has been merged this issue can be resolved by overriding nitropack
to install its nightly release (you will have to remove lockfiles before reinstalling). I have updated you reproduction to demonstrate here.
Not sure when then next nitro release will be, let's hope it's soon and that Nuxt includes it in the next release!
Let's keep this issue open until that's released, until then if anyone else runs into this add this to your package.json
as a temporary workaround:
"overrides": {
"nitropack": "npm:nitropack-nightly"
}
Thanks for the quick resolution 🔥
Environment
Darwin
v20.11.1
3.10.3
3.10.1
2.9.3
pnpm@8.15.4
-
modules
,security
,htmlValidator
,css
,imports
,multiCache
,graphqlMiddleware
,runtimeConfig
,i18n
,piniaPersistedstate
,experimental
,image
,prismic
,vite
@nuxtjs/i18n@8.1.1
-
Reproduction
YML (not working): https://stackblitz.com/edit/nuxt-i18n-localedector-yml?file=nuxt.config.ts JSON (working): https://stackblitz.com/edit/nuxt-i18n-localedector-yml-nuxna8?file=nuxt.config.ts
Describe the bug
When we are using the experimental
localeDetector
option with.yml
file translation and they are a problem with the compilation. There is no problem when we are using json file.Additional context
No response
Logs