The requested module ‘/node_modules/.vite/deps/react-tilt.js?t=1681239019006&v=59c21aef’ does not provide an export named ‘default
I tried reinstalling tilt again using npm still it didnt make any difference
The requested module ‘/node_modules/.vite/deps/react-tilt.js?t=1681239019006&v=59c21aef’ does not provide an export named ‘default
I tried reinstalling tilt again using npm still it didnt make any difference
2
Answers
Try this
import { Tilt } from ‘react-tilt’
use react-parallax-tilt instead of react-tilt and remove –legacy-peer-deps from the command.
Also wherever you are using: import Tilt from "react-tilt", replace it with your new library like this: import Tilt from "react-parallax-tilt