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

Importing tilt #158

Open Mukeshsingh8 opened 2 months ago

Mukeshsingh8 commented 2 months ago

the current import section looks like : import Tilt from "react-tilt";we are facing this issue: Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/react-tilt.js?v=e9c1a88c' does not provide an export named 'default' (at About.jsx:2:8)

As per : https://www.npmjs.com/package/react-tilt

And using this, I was able to resolve this issue: import { Tilt } from 'react-tilt'

akarshan2602 commented 2 months ago

You could also use

import Tilt from 'react-parallax-tilt';