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

White Screen coming after coding About.jsx and SectionWrapper.jsx #88

Open pranavv444 opened 1 year ago

pranavv444 commented 1 year ago

There is no error showing and the code is all correct but still it is showing white screen. I don't know what is the problem. If someone know pls help.

Hmmza-tariq commented 1 year ago

Getting the same issue : Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/react-tilt.js?v=0855d810' does not provide an export named 'default' (at About.jsx:2:8) image

pranavv444 commented 1 year ago

What is the solution now?

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 imports of About.jsx and Works.jsx change

import Tilt from "react-tilt";

to

import { Tilt } from "react-tilt";

4- Run

npm run dev

pranavv444 commented 1 year ago

Alright , I will try it rn. And will let you know if that worked or not.

pranavv444 commented 1 year ago

Bro , it worked!! Thanx @Hmmza-tariq ..Cheeres bro!

abupraise 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 imports of About.jsx and Works.jsx change

import Tilt from "react-tilt";

to

import { Tilt } from "react-tilt";

4- Run

npm run dev

It worked!!! Thank you

Millz98 commented 3 months ago

I made the correct changes to my code, but still getting the white screen