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

@intlify/unplugin-vue-i18n doesn't work with Nuxt 3.7 #292

Closed
4 tasks done
mcrapts opened this issue Sep 7, 2023 · 1 comment
Closed
4 tasks done

@intlify/unplugin-vue-i18n doesn't work with Nuxt 3.7 #292

mcrapts opened this issue Sep 7, 2023 · 1 comment
Labels
Status: Review Needed Request for review comments

Comments

@mcrapts
Copy link

mcrapts commented Sep 7, 2023

Reporting a bug?

After upgrading to Nuxt 3.7, vue-i18n doesn't work anymore when building the app. It works in development mode, but running npm run build && node .output/server/index.mjs results in the following error:

[500] Cannot find module '/home/projects/github-hnz7et/.output/server/chunks/dist/vue-i18n.runtime.mjs' imported from /home/projects/github-hnz7et/.output/server/chunks/app/server.mjs

I am not sure whether this is an issue with vue-i18n, @intlify/unplugin-vue-i18n or Nuxt, but my first hunch is there is something wrong in the plugin.

Expected behavior

Building and running an app with Nuxt 3.7 where vue-i18n is setup according to the instructions should work without errors.

Reproduction

  1. Go to: https://stackblitz.com/edit/github-hnz7et-dysose?file=package.json
  2. Run npm run build && node .output/server/index.mjs
  3. Verify that it results in error 500 when accessing the app through the web browser

Issue Package

unplugin-vue-i18n

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.20.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.4.2 - /usr/local/bin/npm
    pnpm: 8.6.10 - /usr/local/bin/pnpm
  npmPackages:
    vue-i18n: ^9.3.0 => 9.3.0

Screenshot

image
image

Additional context

No response

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.
@mcrapts mcrapts added the Status: Review Needed Request for review comments label Sep 7, 2023
@mcrapts
Copy link
Author

mcrapts commented Sep 14, 2023

This is an issue with vue-i18n, possibly only the docs need to be updated. See: intlify/vue-i18n#1546

This issue can be closed.

@mcrapts mcrapts closed this as completed Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Review Needed Request for review comments
Projects
None yet
Development

No branches or pull requests

1 participant