Skip to content

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

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

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

Conversation

@penglezos

@penglezos penglezos commented Feb 2, 2026

Copy link
Copy Markdown

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/[email protected]
npm error Found: [email protected]
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/[email protected]
npm error node_modules/@vercel/analytics
npm error   @vercel/analytics@"^1.6.1" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/vue-router
npm error   peerOptional vue-router@"^4" from @vercel/[email protected]
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

vercel Bot commented Feb 2, 2026

Copy link
Copy Markdown

@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

socket-security Bot commented Feb 2, 2026

Copy link
Copy Markdown

@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

ghost commented Feb 16, 2026 via email

Copy link
Copy Markdown

@Oui-Dev

Oui-Dev commented Mar 23, 2026

Copy link
Copy Markdown

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/[email protected]
npm error Found: [email protected]
npm error node_modules/vue-router
npm error   peerOptional vue-router@"^4.5.0 || ^5.0.0" from @nuxt/[email protected]
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 [email protected]
npm error   node_modules/nuxt
npm error     nuxt@"^4.4.2" from the root project
npm error     peer nuxt@"^4.4.2" from @nuxt/[email protected]
npm error     node_modules/@nuxt/nitro-server
npm error       @nuxt/nitro-server@"4.4.2" from [email protected]
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/[email protected]
npm error node_modules/@vercel/analytics
npm error   @vercel/analytics@"^2.0.1" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/vue-router
npm error   peerOptional vue-router@"^4" from @vercel/[email protected]
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

HugoRCD commented Mar 30, 2026

Copy link
Copy Markdown
Member

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

@feugy feugy left a comment

Copy link
Copy Markdown
Member

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

vercel Bot commented Mar 31, 2026

Copy link
Copy Markdown

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