project_3D_developer_portfolio icon indicating copy to clipboard operation
project_3D_developer_portfolio copied to clipboard

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

Open davorbu opened this issue 1 year ago • 16 comments

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 avatar Mar 05 '23 14:03 davorbu

Snimka zaslona (88)

davorbu avatar Mar 05 '23 14:03 davorbu

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

TauqeerHusain avatar Mar 05 '23 14:03 TauqeerHusain

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 avatar Mar 05 '23 14:03 davorbu

You are from Zagreb or?

davorbu avatar Mar 05 '23 14:03 davorbu

no i am tauqeer

TauqeerHusain avatar Mar 05 '23 15:03 TauqeerHusain

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

bottercode avatar Mar 05 '23 20:03 bottercode

i already work all code is working

TauqeerHusain avatar Mar 06 '23 06:03 TauqeerHusain

Okay!

bottercode avatar Mar 07 '23 18:03 bottercode

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

SalmanMujtaba avatar Mar 08 '23 05:03 SalmanMujtaba

How did you resolve this error?

Sk-hub462 avatar May 02 '23 18:05 Sk-hub462

How did you resolve this error?

"npm install react-tilt"

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

hady-dev avatar May 05 '23 23:05 hady-dev

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

023PrashantSharma avatar May 23 '23 18:05 023PrashantSharma

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

Noman-Nom avatar May 27 '23 06:05 Noman-Nom

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)

MuhammadAnabHussain avatar Sep 10 '23 08:09 MuhammadAnabHussain

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

19cs193 avatar Feb 29 '24 20:02 19cs193

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.

s0rryFSU avatar Apr 30 '24 15:04 s0rryFSU