Vercel analytics and nextjs canary version
Unanswered
Beveren posted this in #help-forum
BeverenOP
Im trying to add vercel analytics in my project while im using a canary version of nextjs , but my build is failing, is there any fix for this?
16:15:51.931
npm error code ERESOLVE
16:15:51.932
npm error ERESOLVE could not resolve
16:15:51.933
npm error
16:15:51.933
npm error While resolving: @vercel/analytics@1.5.0
16:15:51.933
npm error Found: next@15.6.0-canary.40
16:15:51.933
npm error node_modules/next
16:15:51.934
npm error next@"^15.6.0-canary.40" from the root project
16:15:51.934
npm error
16:15:51.934
npm error Could not resolve dependency:
16:15:51.934
npm error peerOptional next@">= 13" from @vercel/analytics@1.5.0
16:15:51.935
npm error node_modules/@vercel/analytics
16:15:51.935
npm error @vercel/analytics@"^1.5.0" from the root project
16:15:51.935
npm error
16:15:51.936
npm error Conflicting peer dependency: next@15.5.4
16:15:51.936
npm error node_modules/next
16:15:51.936
npm error peerOptional next@">= 13" from @vercel/analytics@1.5.0
16:15:51.936
npm error node_modules/@vercel/analytics
16:15:51.936
npm error @vercel/analytics@"^1.5.0" from the root project
2 Replies
use pnpm @Beveren
this is a peer dependency issue you've run into
this is a peer dependency issue you've run into
@prudent use pnpm <@685827899143880733>
this is a peer dependency issue you've run into
BeverenOP
I used --legacy-peer-deps , is it the same? should i change to pnpm?