Invalid hook call on fresh project
TimWillaert opened this issue · comments
Receiving following error:
I created a project with create-react-app and installed the package through npm i react-animated-cursor
My App.js component just looks like this:
I tried clearing node_modules and npm installing again, but that doesn't help. Maybe I'm just being a dumb-dumb (I'm pretty new to React).
Really hoping to get this fixed, this looks like an awesome package!
Thanks for the quick response.
I started a new project without using create-react-app and it works fine now!
Fixed.
Tested the package with CRA (and Parcel) and runs as expected.
You can reinstall or update to react-animated-cursor@2.1.8
Turns out the package did in fact include its own version of React.
Just had to move React/React Dom to dev and peer deps in package.json.