Skip to content
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 running Nuxt I18n module with latest Nuxt version (π version) in StackBlitz #420

Open
4 tasks done
userquin opened this issue Nov 16, 2024 · 1 comment
Open
4 tasks done

Comments

@userquin
Copy link
Member

userquin commented Nov 16, 2024

Reporting a bug?

Looks like Vite warmup calling ssrTransform directly without calling config hooks, directive Vite plugin here requires compiler from vite:vue plugin and it is missing or still not configured (maybe Nuxt bug).

Here a repo using pnpm to patch @intlify/unplugin-vue-i18n/vite (link to SB in the readme file):
https://github.com/userquin/nuxt-i18n-stackblitz-starter

Expected behavior

The app should start but sometimes doesn't work.

Reproduction

https://stackblitz.com/fork/github/BobbieGoede/nuxt-i18n-starter/tree/v9

Issue Package

unplugin-vue-i18n

System Info

NA: works on local, the problem is StackBlitz

Anyway check the reproduction and the fix.

Screenshot

imagen

Here the log patching vite manually:

imagen

Additional context

I'm preparing a PR to fix this.

Validations

  • Read the Contributing Guidelines.
  • Read the README
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion.
@userquin
Copy link
Member Author

userquin commented Nov 17, 2024

it is a bug in @vitejs/plugin-vue, compiler not being initialized correctly: vitejs/vite-plugin-vue#475

@userquin userquin reopened this Nov 17, 2024
@userquin userquin reopened this Nov 17, 2024
@userquin userquin added upstream issue and removed Status: Review Needed Request for review comments labels Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant