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.06k stars 1.37k forks source link

Update when importing Tilt from react-tilt #47

Closed 0m3ga13 closed 1 year ago

0m3ga13 commented 1 year ago

I got syntax error when importing Tilt

_Uncaught SyntaxError: The requested module '/nodemodules/.vite/deps/react-tilt.js?v=5c5d06cb' does not provide an export named 'default' (at Works.jsx:2:8)

to fix I added {} to Tilt: import {Tilt} from 'react-tilt'

harshlibra08 commented 1 year ago

Use - import Tilt from "react-parallax-tilt"