Skip to content

Nuxt devtools is not working with i18n module #827

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

Closed
jesspinklet opened this issue Mar 22, 2025 · 4 comments
Closed

Nuxt devtools is not working with i18n module #827

jesspinklet opened this issue Mar 22, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@jesspinklet
Copy link

jesspinklet commented Mar 22, 2025

🐛 The bug

I'm not sure why, but after upgrading the devtools to latest version (v2.3.1) from v2.1.3 while having i18n module in Nuxt config, the devtools stops working

I tested that in stackblitz and it was working, but on my device it didn't work. not sure what is different. I tried npm, bun, pnpm all on local and it didn't work.

SETUP:
win 11
node: v22.13.1
bun: 1.2.2

🛠️ To reproduce

https://github.com/jesspinklet/reproduce-nuxt-devtools-i18n

🌈 Expected behavior

Clicking on inspector should work also togging the devtools won't re open it again.

ℹ️ Additional context

No response

@jesspinklet jesspinklet added the bug Something isn't working label Mar 22, 2025
@EternalC0der
Copy link

Same issue on:
OS: MacOS 15.2
Node: v22.12.0

@jon-lbm
Copy link

jon-lbm commented Mar 31, 2025

Same issue on my end.
OS: MacOS 14.6.1
Node: v22.14.0

@phuriwatc
Copy link

Same issue on:
OS: MacOS 14.7.1
Node: v22.13.1
i18n: "@nuxtjs/i18n": "^9.4.0",

@jesspinklet
Copy link
Author

Update:
I managed to fix it by adding

    bundle: {
      optimizeTranslationDirective: false
    }

to i18n inside Nuxt config.

Also I was getting this warning in console
Image
Which it fixed the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants