Skip to content

fix(vue): support for vue-router v5#185

Merged
feugy merged 2 commits intovercel:canaryfrom
penglezos:vue-router
Mar 31, 2026
Merged

fix(vue): support for vue-router v5#185
feugy merged 2 commits intovercel:canaryfrom
penglezos:vue-router

Conversation

@penglezos
Copy link
Copy Markdown

@penglezos penglezos commented Feb 2, 2026

Description

Currently, @vercel/analytics (v1.6.1) specifies vue-router@^4 as an optional peer dependency.
With the release of vue-router v5, projects using the latest version of Vue encounter ERRESOLVE errors during installation because of this version mismatch.

Console output

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @vercel/analytics@1.6.1
npm error Found: vue-router@5.0.2
npm error node_modules/vue-router
npm error   vue-router@"^5.0.2" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional vue-router@"^4" from @vercel/analytics@1.6.1
npm error node_modules/@vercel/analytics
npm error   @vercel/analytics@"^1.6.1" from the root project
npm error
npm error Conflicting peer dependency: vue-router@4.6.4
npm error node_modules/vue-router
npm error   peerOptional vue-router@"^4" from @vercel/analytics@1.6.1
npm error   node_modules/@vercel/analytics
npm error     @vercel/analytics@"^1.6.1" from the root project

Changes

This PR updates the package and peerDependencies to support vue-router v5.

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 2, 2026

@penglezos is attempting to deploy a commit to the Analytics Test Projects Team on Vercel.

A member of the Team first needs to authorize it.

@socket-security
Copy link
Copy Markdown

socket-security bot commented Feb 2, 2026

@atinux atinux requested a review from HugoRCD February 3, 2026 09:51
@HugoRCD HugoRCD changed the title fix: support for vue-router v5 fix(vue): support for vue-router v5 Feb 4, 2026
@HugoRCD HugoRCD changed the title fix(vue): support for vue-router v5 fix(vue): support for vue-router v5 Feb 4, 2026
@penglezos
Copy link
Copy Markdown
Author

Hi! This PR looks all set if everything's okay on your end, can we get this merged?

@ghost
Copy link
Copy Markdown

ghost commented Feb 16, 2026 via email

@Oui-Dev
Copy link
Copy Markdown

Oui-Dev commented Mar 23, 2026

Will this be merged soon? I'm having conflicts preventing me from updating my stack.

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @vercel/analytics@2.0.1
npm error Found: vue-router@5.0.4
npm error node_modules/vue-router
npm error   peerOptional vue-router@"^4.5.0 || ^5.0.0" from @nuxt/ui@4.6.0
npm error   node_modules/@nuxt/ui
npm error     @nuxt/ui@"^4.6.0" from the root project
npm error   vue-router@"^5.0.3" from nuxt@4.4.2
npm error   node_modules/nuxt
npm error     nuxt@"^4.4.2" from the root project
npm error     peer nuxt@"^4.4.2" from @nuxt/nitro-server@4.4.2
npm error     node_modules/@nuxt/nitro-server
npm error       @nuxt/nitro-server@"4.4.2" from nuxt@4.4.2
npm error     3 more (@nuxt/vite-builder, @vercel/analytics, @vercel/speed-insights)
npm error
npm error Could not resolve dependency:
npm error peerOptional vue-router@"^4" from @vercel/analytics@2.0.1
npm error node_modules/@vercel/analytics
npm error   @vercel/analytics@"^2.0.1" from the root project
npm error
npm error Conflicting peer dependency: vue-router@4.6.4
npm error node_modules/vue-router
npm error   peerOptional vue-router@"^4" from @vercel/analytics@2.0.1
npm error   node_modules/@vercel/analytics
npm error     @vercel/analytics@"^2.0.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

@HugoRCD
Copy link
Copy Markdown
Member

HugoRCD commented Mar 30, 2026

cc @feugy

@HugoRCD HugoRCD requested a review from feugy March 30, 2026 15:51
@feugy feugy changed the base branch from main to canary March 31, 2026 09:42
Copy link
Copy Markdown
Member

@feugy feugy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge with the conflict on pnpm-lock.json and I'll fix straight on the canary branch.
All our apologies for this have been unoticed for so long!!

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
analytics-astro Ready Ready Preview, Comment Mar 31, 2026 9:55am
analytics-next15 Ready Ready Preview, Comment Mar 31, 2026 9:55am
analytics-nextjs Ready Ready Preview, Comment Mar 31, 2026 9:55am
analytics-nuxt Ready Ready Preview, Comment Mar 31, 2026 9:55am
analytics-remix Ready Ready Preview, Comment Mar 31, 2026 9:55am
analytics-sveltekit Ready Ready Preview, Comment Mar 31, 2026 9:55am
analytics-vue Ready Ready Preview, Comment Mar 31, 2026 9:55am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants