-
Notifications
You must be signed in to change notification settings - Fork 471
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
Error when using dev-mode in layer #2238
Comments
Thank you for your reporting! We need the minimal reproduction to find out the cause. |
@kazupon finally found the time to make a reproduction. |
I think I found the place where the NULL byte is added: https://github.com/nuxt-modules/i18n/blob/next/src/gen.ts#L182
|
Okay I think I tracked this down 🥳
It adds
If you run |
@niklaswolf Maybe, this issue is also related to #2242 |
Environment
Darwin
v18.15.0
3.6.2
2.5.2
npm@9.5.0
vite
extends
,hooks
,runtimeConfig
,modules
,i18n
modules/domainRuntimeInfo
,nuxt-schema-org@2.2.0
-
Reproduction
I'll try to provide a repro later
Describe the bug
I use nuxt-i18n edge version (latest version) in a project with a nuxt-layer.
The dev-mode is working in the layer, but not in the project using the layer
When I start the site in dev mode, the following error message shows in the browser
When I build both sites (layer and project) and start them in prod mode, both work. So there seems to be something strange in dev-mode when using a nuxt-layer.
Additional context
I18N configuration in both projects (layer and main-project)
Logs
No response
The text was updated successfully, but these errors were encountered: