0

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

3 Answers3

4

Try this

import { Tilt } from 'react-tilt'

baljk
  • 41
  • 1
1

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

Sai Sheran
  • 11
  • 1
0

Uninstall the package with:

npm uninstall react-tilt

Then reinstalled it with:

npm install react-tilt

Then change the import to:

import { Tilt } from "react-tilt";

yonatang0401
  • 5
  • 1
  • 3