Skip to content

vue-router v4 resolved instead of v5 when using @nuxtjs/i18n with Nuxt 4.4 #3947

@giticon

Description

@giticon

Environment

  • Operating System: Windows
  • Node Version: 24.4.2
  • Nuxt Version: 4.4.2
  • @nuxtjs/i18n Version: 10.2.3
  • vue-router (expected): 5.0.3
  • vue-router (actually resolved): 4.6.4
  • Package Manager: npm

Reproduction

  1. Create a Nuxt 4.4.x project
  2. Install @nuxtjs/i18n
  3. Run: npm ls vue-router

Describe the bug

@nuxtjs/i18n pulls in vue-router@4.6.4 via unplugin-vue-router@0.16.2, which overrides the vue-router v5 upgrade introduced in Nuxt 4.4. As a result, vue-router@4.6.4 is resolved at the project level instead of v5.

Output of npm ls vue-router:


+-- @nuxtjs/i18n@10.2.3
|   +-- unplugin-vue-router@0.16.2
|   |   `-- vue-router@4.6.4 deduped
|   `-- vue-router@4.6.4 deduped
+-- nuxt@4.4.2
|   `-- vue-router@5.0.3
`-- vue-router@4.6.4

Temporary workaround: force vue-router to v5 via overrides in package.json:

{
  "overrides": {
    "vue-router": "^5.0.3"
  }
}

Additional context

Nuxt 4.4 dropped the dependency on unplugin-vue-router and upgraded to vue-router v5.
Release notes: https://nuxt.com/blog/v4-4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions