Closed BrocksiNet closed 4 days ago
This seems to be caused by useCookie
provided by Nuxt (which is used by @nuxtjs/i18n
), I modified your reproduction to demonstrate here.
I recommend opening an issue on the Nuxt repo as there isn't much we can do about this here.
But what about this PR in nuxt repo. It should fix that problem?
I tried disabeling detectBrowserLanguage
but problem seems to persist.
@BrocksiNet have you found any workaround?
Hello! Any workaround for this?
@bbauti Can you provide an up to date reproduction? I'll take a look
Closing this as I'm no longer able to reproduce this issue, perhaps it has been resolved upstream 🤔 Please let me know if you're still experiencing this issue with updated dependency, if you can provide an updated reproduction I'll reopen this issue 🙏
Environment
Linux
v20.11.1
3.11.1
3.11.1
2.9.4
pnpm@8.15.5
-
devtools
-
-
Reproduction
https://stackblitz.com/edit/github-jjkr5f
Describe the bug
I was researching a lot today about that issue. :mag:
I assume that the issue comes from nuxt i18n module.
So I created a empty nuxt/vite project with that command:
pnpm dlx nuxi@latest init <project-name>
Testing this in preview mode is important because Vite is opening a WebSocket in dev mode, which can also cause an issue with bfcache.
So the steps for testing are:
Result:
Somehow I assume it has something to do with
detectBrowserLanguage
function. But not sure about that. :confused:Can someone reproduce or confirm? I hope I am wrong.
Additional context
No response
Logs
No response