Open Tienisto opened 6 months ago
Thank you for your reporting!
I've tried to reproduce your minimal reproduction! But, I have faced the error...
[nitro 17:51:18] ERROR Error: Could not load /path/to/node_modules/@nuxt/devtools/node_modules/unstorage/drivers/fs-lite.mjs (imported by virtual:#internal/nitro/virtual/storage): ENOENT: no such file or directory, open '/path/to/node_modules/@nuxt/devtools/node_modules/unstorage/drivers/fs-lite.mjs'
I could not reproduce. We do not know why that error occurs, but it is not related to this Issue.
@BobbieGoede if you have time, could you try to reproduce this issue? 🙏
Environment
Darwin
v20.12.2
3.11.2
3.11.1
2.9.6
pnpm@9.0.6
-
devtools
,modules
,i18n
@nuxtjs/i18n@8.3.1
-
Reproduction
Implementation:
prefix_except_default
orprefix_and_default
<NuxtPage>
nuxt generate
/pnpm run generate
)Steps to reproduce the issue:
de-DE
and open the page.de
version of the page (http://localhost:3000/de
).EN
to switch to English version of the page.EN
is disappears (it should not) and also in the console you will see an error:TypeError: t is null
See minimal example repo: https://github.com/Tienisto/nuxt-i18n-bug
Describe the bug
When adding a locale switcher outside of
<NuxtApp>
and using SSG, switching locale after initial redirect based on browser locale fails.See minimal example: https://github.com/Tienisto/nuxt-i18n-bug
Additional context
No response
Logs
No response