ladunjexa / reactjs18-3d-portfolio

incredible 3D developer portfolio website with awesome graphics - built with React & Three.js 🪄
https://threejs-3-d-portfolio.vercel.app
MIT License
381 stars 153 forks source link

while deploying on Vercel = npm ERR! code ERESOLVE, npm ERR! ERESOLVE could not resolve and many #11

Closed manjubluemoon closed 1 year ago

manjubluemoon commented 1 year ago

[07:24:02.510] Running build in Cleveland, USA (East) – cle1 [07:24:02.566] Cloning github.com/manjubluemoon/Threejs-3D-Portfolio (Branch: main, Commit: https://github.com/ladunjexa/Threejs-3D-Portfolio/commit/450389433cdf449112edb97b6b8d37b147fc2995) [07:24:02.819] Previous build cache not available [07:24:06.900] Cloning completed: 4.334s [07:24:07.790] Running "vercel build" [07:24:08.268] Vercel CLI 30.2.1 [07:24:08.813] Installing dependencies... [07:24:10.365] npm notice [07:24:10.366] npm notice New minor version of npm available! 9.5.0 -> 9.7.1 [07:24:10.366] npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.7.1 [07:24:10.366] npm notice Run npm install -g npm@9.7.1 to update! [07:24:10.366] npm notice [07:24:10.367] npm ERR! code ERESOLVE [07:24:10.370] npm ERR! ERESOLVE could not resolve [07:24:10.370] npm ERR! [07:24:10.370] npm ERR! While resolving: react-tilt@0.1.4 [07:24:10.370] npm ERR! Found: react@18.2.0 [07:24:10.370] npm ERR! node_modules/react [07:24:10.370] npm ERR! react@"^18.2.0" from the root project [07:24:10.370] npm ERR! peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from @react-spring/animated@9.6.1 [07:24:10.370] npm ERR! node_modules/@react-spring/animated [07:24:10.370] npm ERR! @react-spring/animated@"~9.6.1" from @react-spring/core@9.6.1 [07:24:10.370] npm ERR! node_modules/@react-spring/core [07:24:10.370] npm ERR! @react-spring/core@"~9.6.1" from @react-spring/three@9.6.1 [07:24:10.370] npm ERR! node_modules/@react-spring/three [07:24:10.371] npm ERR! @react-spring/three@"~9.6.1" from @react-three/drei@9.74.15 [07:24:10.371] npm ERR! node_modules/@react-three/drei [07:24:10.371] npm ERR! @react-spring/animated@"~9.6.1" from @react-spring/three@9.6.1 [07:24:10.371] npm ERR! node_modules/@react-spring/three [07:24:10.371] npm ERR! @react-spring/three@"~9.6.1" from @react-three/drei@9.74.15 [07:24:10.371] npm ERR! node_modules/@react-three/drei [07:24:10.371] npm ERR! @react-three/drei@"^9.56.24" from the root project [07:24:10.371] npm ERR! 17 more (@react-spring/core, @react-spring/shared, ...) [07:24:10.371] npm ERR! [07:24:10.371] npm ERR! Could not resolve dependency: [07:24:10.371] npm ERR! peer react@"^15.0.0 || ^16.0.0-beta || ^16.0.0" from react-tilt@0.1.4 [07:24:10.371] npm ERR! node_modules/react-tilt [07:24:10.371] npm ERR! react-tilt@"^0.1.4" from the root project [07:24:10.371] npm ERR! [07:24:10.371] npm ERR! Conflicting peer dependency: react@16.14.0 [07:24:10.371] npm ERR! node_modules/react [07:24:10.371] npm ERR! peer react@"^15.0.0 || ^16.0.0-beta || ^16.0.0" from react-tilt@0.1.4 [07:24:10.372] npm ERR! node_modules/react-tilt [07:24:10.372] npm ERR! react-tilt@"^0.1.4" from the root project [07:24:10.372] npm ERR! [07:24:10.372] npm ERR! Fix the upstream dependency conflict, or retry [07:24:10.372] npm ERR! this command with --force or --legacy-peer-deps [07:24:10.372] npm ERR! to accept an incorrect (and potentially broken) dependency resolution. [07:24:10.372] npm ERR! [07:24:10.372] npm ERR! [07:24:10.372] npm ERR! For a full report see: [07:24:10.372] npm ERR! /vercel/.npm/_logs/2023-06-18T01_54_09_103Z-eresolve-report.txt [07:24:10.373] [07:24:10.373] npm ERR! A complete log of this run can be found in: [07:24:10.373] npm ERR! /vercel/.npm/_logs/2023-06-18T01_54_09_103Z-debug-0.log [07:24:10.387] Error: Command "npm install" exited with 1 [07:24:10.780] BUILD_UTILS_SPAWN_1: Command "npm install" exited with 1

ladunjexa commented 1 year ago

Hey manjubluemoon, Make sure you set the Framework Preset to Vite when configure the project on vercel.

manjubluemoon commented 1 year ago

Yes selected the same but got the error again !!!

[14:28:09.517] Running build in Cleveland, USA (East) – cle1 [14:28:09.573] Cloning github.com/manjubluemoon/Threejs-3D-Portfolio (Branch: main, Commit: 4503894) [14:28:09.816] Previous build cache not available [14:28:14.680] Cloning completed: 5.107s [14:28:15.808] Running "vercel build" [14:28:16.327] Vercel CLI 30.2.3 [14:28:16.909] Installing dependencies... [14:28:18.027] npm ERR! code ERESOLVE [14:28:18.030] npm ERR! ERESOLVE could not resolve [14:28:18.031] npm ERR! [14:28:18.031] npm ERR! While resolving: react-tilt@0.1.4 [14:28:18.031] npm ERR! Found: react@18.2.0 [14:28:18.031] npm ERR! node_modules/react [14:28:18.031] npm ERR! react@"^18.2.0" from the root project [14:28:18.031] npm ERR! peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from @react-spring/animated@9.6.1 [14:28:18.031] npm ERR! node_modules/@react-spring/animated [14:28:18.032] npm ERR! @react-spring/animated@"~9.6.1" from @react-spring/core@9.6.1 [14:28:18.032] npm ERR! node_modules/@react-spring/core [14:28:18.032] npm ERR! @react-spring/core@"~9.6.1" from @react-spring/three@9.6.1 [14:28:18.032] npm ERR! node_modules/@react-spring/three [14:28:18.032] npm ERR! @react-spring/three@"~9.6.1" from @react-three/drei@9.74.15 [14:28:18.032] npm ERR! node_modules/@react-three/drei [14:28:18.032] npm ERR! @react-spring/animated@"~9.6.1" from @react-spring/three@9.6.1 [14:28:18.032] npm ERR! node_modules/@react-spring/three [14:28:18.032] npm ERR! @react-spring/three@"~9.6.1" from @react-three/drei@9.74.15 [14:28:18.032] npm ERR! node_modules/@react-three/drei [14:28:18.032] npm ERR! @react-three/drei@"^9.56.24" from the root project [14:28:18.033] npm ERR! 17 more (@react-spring/core, @react-spring/shared, ...) [14:28:18.033] npm ERR! [14:28:18.033] npm ERR! Could not resolve dependency: [14:28:18.033] npm ERR! peer react@"^15.0.0 || ^16.0.0-beta || ^16.0.0" from react-tilt@0.1.4 [14:28:18.033] npm ERR! node_modules/react-tilt [14:28:18.033] npm ERR! react-tilt@"^0.1.4" from the root project [14:28:18.033] npm ERR! [14:28:18.033] npm ERR! Conflicting peer dependency: react@16.14.0 [14:28:18.034] npm ERR! node_modules/react [14:28:18.034] npm ERR! peer react@"^15.0.0 || ^16.0.0-beta || ^16.0.0" from react-tilt@0.1.4 [14:28:18.034] npm ERR! node_modules/react-tilt [14:28:18.035] npm ERR! react-tilt@"^0.1.4" from the root project [14:28:18.035] npm ERR! [14:28:18.035] npm ERR! Fix the upstream dependency conflict, or retry [14:28:18.035] npm ERR! this command with --force or --legacy-peer-deps [14:28:18.035] npm ERR! to accept an incorrect (and potentially broken) dependency resolution. [14:28:18.035] npm ERR! [14:28:18.035] npm ERR! [14:28:18.035] npm ERR! For a full report see: [14:28:18.035] npm ERR! /vercel/.npm/_logs/2023-06-21T08_58_17_254Z-eresolve-report.txt [14:28:18.035] [14:28:18.036] npm ERR! A complete log of this run can be found in: [14:28:18.036] npm ERR! /vercel/.npm/_logs/2023-06-21T08_58_17_254Z-debug-0.log [14:28:18.053] Error: Command "npm install" exited with 1 [14:28:18.500] BUILD_UTILS_SPAWN_1: Command "npm install" exited with 1

ladunjexa commented 1 year ago

Change the Install Command at the Build and Output Settings to npm install --legacy-peer-deps

manjubluemoon commented 1 year ago

thank you again It is resolved I am closing the issue