i18n: Missing "./node_modules/vue-i18n-routing/dist/vue-i18n-routing.mjs" export in "@nuxtjs/i18n" package

Version

@nuxtjs/i18n: 8.0.0-beta.5 nuxt: npm:nuxt3@3.0.1-rc.0-27821553.ab125bd

Nuxt configuration

Please change to [x] if relevant for this issue:

  • Applies to a site deployed to a static server (site generated with nuxt generate)
  • Applies to a site deployed to a server with a Node backend

@nuxtjs/i18n configuration

Reproduction Link

Steps to reproduce

What is Expected?

Happens when bumping the @nuxtjs/i18n from 8.0.0-beta.4 to 8.0.0-beta.5. Wish I could find the exact line where it’s failing, as the error message is quite generic.

What is actually happening?

image

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 17
  • Comments: 26 (1 by maintainers)

Most upvoted comments

@DamianGlowala Thank you!!!

Indeed, using

  "overrides": {
    "vue-i18n": "^9.3.0-beta.10"
  }

I’m able at least to build the project

Could you try overriding the package version? https://stackoverflow.com/a/70396201

I’ve just released edge version @nuxtjs/i18n-edge@8.0.0-beta.6-27835776.563d636 please check it!

Thank you for your reproduction info!

I downloaded the code from @Aareksio’s Stackblitz and gave it a try locally… no error for me. While my own project still shows the error I mentioned yesterday

Hi,

@nuxtjs/i18n: @nuxtjs/i18n-edge@8.0.0-beta.4-27817449.b065900 nuxt: 3.0.0

Not sure if totally related but I have an issue that might be similar. However my colleagues, with same code base, cannot reproduced it.

Error message is :

[vite:load-fallback] Could not load /Users/xxxx/www/vwp_test/frontend/dist/vue-i18n-routing.mjs (imported by node_modules/@nuxtjs/i18n/dist/runtime/plugin.mjs): ENOENT: no such file or directory, open ‘/Users/xxxx/www/vwp_test/frontend/dist/vue-i18n-routing.mjs’

Hope it helps…

@kazupon unfortunately I’m still not able to build even with the alias (it was my fault not using it in the first place).

Maybe it’s only something on my end, as @lukaszflorczak confirmed it works properly with the edge version.

But still, I just noticed that the error message is a little bit different from the original post :

✘ [ERROR] Could not read from file: /Users/nicolae/Documents/menoo/web/webapp/node_modules/dist/vue-i18n.mjs

/node_modules/ (mising-module-directory) dist/vue-i18n.mjs


edited:

ps. I’m using the module name @nuxtjs/i18n in nuxt.config.ts

Sure


package manager & version

nicolae@192 client % npm --v
8.19.2

OS

nicolae@192 ~ % sw_vers
ProductName:		macOS
ProductVersion:		13.0.1
BuildVersion:		22A400

node.js version

nicolae@192 ~ % node -v 
v18.12.1

node_modules structure info

Here’s my package-lock.json

use simple project or monorepo project?

monorepo