project_3D_developer_portfolio icon indicating copy to clipboard operation
project_3D_developer_portfolio copied to clipboard

Error with react-tilt

Open Bhakti087 opened this issue 1 year ago • 2 comments

image image

Bhakti087 avatar May 27 '23 12:05 Bhakti087

You directly typed npm install and this is the mistake, you should use --legacy-peer-deps to fix this error just type this command line npm install --legacy-peer-deps react-tilt

or for all packages type this npm install --legacy-peer-deps @react-three/fiber @react-three/drei maath react-tilt react-vertical-timeline-component @emailjs/browser framer-motion react-router-dom

ftp5500 avatar Jun 03 '23 13:06 ftp5500

You directly typed npm install and this is the mistake, you should use --legacy-peer-deps to fix this error just type this command line npm install --legacy-peer-deps react-tilt

or for all packages type this npm install --legacy-peer-deps @react-three/fiber @react-three/drei maath react-tilt react-vertical-timeline-component @emailjs/browser framer-motion react-router-dom

Works Great! After downloading the code, I just did:

npm i --legacy-peer-deps

and it worked like a charm.

I had earlier tired to replace the package.json with a new one that I created after following the video to update the versions of the packages used but it didn't work (I did earlier try to use npm update but didn't work, then I removed the package-lock.json along with the old package.json. Then upon running the code using npm run dev, the page only showed a blank white page ( something I'd like to know why, most definitely the new packages version but what exactly in those too )

Thank You for the fix, Man.

KartikDotDev avatar Aug 22 '23 16:08 KartikDotDev