Skip to content

Unable to use import.meta.glob in locale files #3830

@s3xysteak

Description

@s3xysteak

Environment


  • Operating System: Windows_NT
  • Node Version: v22.17.0
  • Nuxt Version: 4.1.2
  • CLI Version: 3.28.0
  • Nitro Version: 2.12.5
  • Package Manager: pnpm@10.17.0
  • Builder: -
  • User Config: sourcemap, hub, app, imports, compatibilityDate, devtools, modules, i18n, eslint, primevue
  • Runtime Modules: @nuxt/eslint@1.9.0, @vueuse/nuxt@13.9.0, @unocss/nuxt@66.5.1, @primevue/nuxt-module@4.3.9, @nuxtjs/i18n@10.0.6, @nuxthub/core@0.9.0
  • Build Modules: -

Reproduction

https://github.com/s3xysteak/repro-nuxt-i18n

Describe the bug

When using custom messages (plz check nuxt.config.ts.i18n and i18n/i18n.config.ts), it looks good on dev, but throw error on prod.

Additional context

No response

Logs

Failed to load messages for locale "en" FetchError: [GET] "/_i18n/KWmwzEHP/en/messages.json": 500 Server Error

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: nitroRelated to logic that runs in the Nitro contextupstreamIssue requires changes by a dependency rather than in this repo.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions