adrianhajdin / project_3D_developer_portfolio

The most impressive websites in the world use 3D graphics and animations to bring their content to life. Learn how to build your own ThreeJS 3D Developer Portfolio today!
https://jsmastery.pro
6.1k stars 1.37k forks source link

Hello Adrian, I have problem with About.jsx file code please if you can help me with this error? .... #5

Open davorbu opened 1 year ago

davorbu commented 1 year ago

Failed to resolve import "react-tilt" from "src\components\About.jsx". Does the file exist?

D:/myportfolio/src/components/About.jsx:2:17 15 | } 16 | import React from "react"; 17 | import Tilt from "react-tilt"; | ^ 18 | import { motion } from "framer-motion"; 19 | import { styles } from "../styles"; at formatError (file:///D:/myportfolio/node_modules/vite/dist/node/chunks/dep-ca21228b.js:41418:46) at TransformContext.error (file:///D:/myportfolio/node_modules/vite/dist/node/chunks/dep-ca21228b.js:41414:19) at normalizeUrl (file:///D:/myportfolio/node_modules/vite/dist/node/chunks/dep-ca21228b.js:39706:33) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async TransformContext.transform (file:///D:/myportfolio/node_modules/vite/dist/node/chunks/dep-ca21228b.js:39840:47) at async Object.transform (file:///D:/myportfolio/node_modules/vite/dist/node/chunks/dep-ca21228b.js:41685:30) at async loadAndTransform (file:///D:/myportfolio/node_modules/vite/dist/node/chunks/dep-ca21228b.js:39479:29 Click outside or fix the code to dismiss. You can also disable this overlay by setting server.hmr.overlay to false in vite.config.js.

davorbu commented 1 year ago

Snimka zaslona (88)

TauqeerHusain commented 1 year ago

bro might be you dont installed the package of react-tilt

davorbu commented 1 year ago

I search and search where I got stuck and I managed to solve the problem before I saw your answer. Thank you so much Adrian. I like your style how you working, and this is great!!

davorbu commented 1 year ago

You are from Zagreb or?

TauqeerHusain commented 1 year ago

no i am tauqeer

bottercode commented 1 year ago

hey! can you assign me this. I would like to work on this

TauqeerHusain commented 1 year ago

i already work all code is working

bottercode commented 1 year ago

Okay!

SalmanMujtaba commented 1 year ago

Let's close this issue if it is already working. Thanks!

Sk-hub462 commented 1 year ago

How did you resolve this error?

hady-dev commented 1 year ago

How did you resolve this error?

"npm install react-tilt"

The problem is that react-tilt is not installed properly.

023PrashantSharma commented 1 year ago

npm install react-parallax-tilt import Tilt from 'react-parallax-tilt'; replace // import Tilt from "react-tilt"; your code will working fine and please mark the issue solved

Noman-Nom commented 1 year ago

npm install react-parallax-tilt import Tilt from 'react-parallax-tilt'; replace // import Tilt from "react-tilt"; your code will working fine and please mark the issue solved

issue solved

MuhammadAnabHussain commented 1 year ago

i have problem with same issue what can i do for this i installed npm install react-tilt but it got me this error Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/react-tilt.js?t=1694334760740&v=a57d4cb8' does not provide an export named 'default' (at About.jsx:2:8)

19cs193 commented 8 months ago

nope not working tried but not working white screen with: Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/react-tilt.js?t=1694334760740&v=a57d4cb8' does not provide an export named 'default' (at About.jsx:2:8)

error in console log

s0rryFSU commented 6 months ago

nope not working tried but not working white screen with: Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/react-tilt.js?t=1694334760740&v=a57d4cb8' does not provide an export named 'default' (at About.jsx:2:8)

error in console log

i have problem with same issue what can i do for this i installed npm install react-tilt but it got me this error Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/react-tilt.js?t=1694334760740&v=a57d4cb8' does not provide an export named 'default' (at About.jsx:2:8)

to the last 2 commenters, as indicated in the responses above use npm install react-parallax-tilt and change the import.