-
-
Notifications
You must be signed in to change notification settings - Fork 518
Open
Labels
Description
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
- Create a Nuxt 4.4.x project
- Install @nuxtjs/i18n
- 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
Reactions are currently unavailable