Skip to content

error when running Nuxt I18n module with latest Nuxt version (π version) in StackBlitz #420

@userquin

Description

@userquin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions