Open anandbhaskaran opened 4 months ago
I just deployed this awesome project via Vercel and everything went well. When I try to build locally I am getting the following error
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: precedent@0.1.0 npm ERR! Found: react@18.3.1 npm ERR! node_modules/react npm ERR! react@"18.3.1" from the root project npm ERR! peer react@"^17.0.2 || ^18" from next-auth@4.24.7 npm ERR! node_modules/next-auth npm ERR! next-auth@"^4.22.1" from the root project npm ERR! peer next-auth@"^4" from @next-auth/prisma-adapter@1.0.7 npm ERR! node_modules/@next-auth/prisma-adapter npm ERR! @next-auth/prisma-adapter@"^1.0.7" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"19.0.0-beta-4508873393-20240430" from next@14.3.0-canary.57 npm ERR! node_modules/next npm ERR! next@"14.3.0-canary.57" 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.
degrading next to 14.2 will solve this.
npm install next@14.2
I just deployed this awesome project via Vercel and everything went well. When I try to build locally I am getting the following error