react-scroll icon indicating copy to clipboard operation
react-scroll copied to clipboard

Is this not compatible with Vite?

Open TheLonerCoder opened this issue 1 year ago • 3 comments

I had no issues using this in my vanilla React projects. Tried to use it with vite and nothing works.. clicking a link doesn't scroll. I'm using the exact same code and the exact same version i'm using in vanilla React too. Anyone else got this to work with Vite?

TheLonerCoder avatar Apr 10 '23 17:04 TheLonerCoder

Hi, I am using it with vite without any problem.

rupinderDev avatar Apr 12 '23 15:04 rupinderDev

I'm getting the following breaking error in Vite: GET http://localhost:5173/node_modules/.vite/deps/react-scroll.js?t=1684163175571&v=7f14b061 net::ERR_ABORTED 504 (Outdated Optimize Dep)

Here's the repo: https://github.com/ToneeEnguix/el_sorrall To install run:

  • npm i
  • npm run dev

Error should appear. Help appreciated!

ToneeEnguix avatar May 15 '23 15:05 ToneeEnguix

ok I think my issue was very simple:

I just deleted package-lock.json and node_modules and ran npm i again.

Worked successfully.

ToneeEnguix avatar May 15 '23 15:05 ToneeEnguix