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
5.81k stars 1.29k forks source link

React Tilt problem in About section #84

Open orangeleaf777 opened 1 year ago

orangeleaf777 commented 1 year ago

Hello. I faced the react-tilt problem in about section. When I refresh the webpage, white screen was seen. I tried to use import { Tilt } from "react-tilt". The same thing happened. I tried to uninstall the react-tilt and install react-parallax-tilt. Then, I import Tilt from "react-parallax-tilt". The same thing happened. All I could see was black screen. Maybe the previous solution doesn't work anymore?

Anyone could help me fix this?

Hmmza-tariq commented 1 year ago

I found the solution: Stackoverflow

1- Uninstall the package with:

npm uninstall react-tilt

2- Then reinstalled it with:

npm install react-tilt

3- Then in the import of About.jsx and Works.jsx change

import Tilt from "react-tilt";

to

import { Tilt } from "react-tilt";

orangeleaf777 commented 1 year ago

Hi, Hmmza. Thanks for answering my question. However, I have already tried this before and it doesn't work. Either black or white screen. I am still trying to figure out the solution. Anyone has suggestion?

abupraise commented 1 year ago

This is still the challenge I am facing, it is just showing a white blank screen

Sajida0007 commented 1 year ago

Hello I was Faced the Same problem but I replaced import { Tilt } from "react-tilt"; to import { Tilt } from '/node_modules/.vite/deps/react-tilt.js'; Now it's working and I just completed my portfolio website you will face the same error in works as well but put the same line and error will be resolver

Sajida0007 commented 1 year ago

@orangeleaf777 please try this I was also give up then I found the solution

abupraise commented 1 year ago

Ok, I'll check it out. Thank you!

On Sun, 20 Aug 2023, 09:45 Sajida Khan, @.***> wrote:

@orangeleaf777 https://github.com/orangeleaf777 please try this I was also give up then I found the solution

— Reply to this email directly, view it on GitHub https://github.com/adrianhajdin/project_3D_developer_portfolio/issues/84#issuecomment-1685227135, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQDALAGECSFVK4TJJGXKTIDXWHFBHANCNFSM6AAAAAA2UNC4BQ . You are receiving this because you commented.Message ID: @.*** com>

Dablox005 commented 1 year ago

Hi, Hmmza. Thanks for answering my question. However, I have already tried this before and it doesn't work. Either black or white screen. I am still trying to figure out the solution. Anyone has suggestion?

Import {Tilt} from 'react-tilt'

Sajida0007 commented 1 year ago

Import {Tilt} from 'react-tilt' use this instead it will work to import { Tilt } from '/node_modules/.vite/deps/react-tilt.js';

orangeleaf777 commented 11 months ago

Hi, Sajida0007. Thanks for your suggestion. I have found my root of problem. It was because of the Section Wrapper. Anyway, thank you so much!

David-Jesse commented 11 months ago

Hi, Sajida0007. Thanks for your suggestion. I have found my root of problem. It was because of the Section Wrapper. Anyway, thank you so much!

Hi orangeleaf please how did you resolve the issue with the Section wrapper?

orangeleaf777 commented 11 months ago

@David-Jesse Hi, I made a typo in the Section Wrapper. Once I removed the {} bracket, everything worked fine.

David-Jesse commented 11 months ago

@David-Jesse Hi, I made a typo in the Section Wrapper. Once I removed the {} bracket, everything worked fine.

Ooh, same here. I've sorted it out now. Thanks!