Skip to content

npm ERR! Could not resolve dependency: npm ERR! peer react@"19.0.0-rc.0" from [email protected] #802

@scottfennell-toptal

Description

@scottfennell-toptal

I'm on chapter 10. Although my project still works locally, I started getting this error in the build logs in vercel:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: undefined@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"19.0.0-rc-f38c22b244-20240704" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"19.0.0-rc.0" from [email protected]
npm ERR! node_modules/next
npm ERR!   next@"15.0.0-canary.56" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /vercel/.npm/_logs/2024-07-12T11_41_02_681Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: /vercel/.npm/_logs/2024-07-12T11_41_02_681Z-debug-0.log
Error: Command "npm install" exited with 1

I can't seem to get past this. Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions