skip to Main Content

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


  1. Try this

    import { Tilt } from ‘react-tilt’

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search