WinterCore / react-text-transition

Animate your text changes
MIT License
601 stars 26 forks source link

Module not found error ! Not working with nextjs 13 #57

Closed Lekhrajk closed 1 year ago

Lekhrajk commented 1 year ago

I just installed it and nextjs is throwing the following error

./node_modules/react-text-transition/lib-esm/components/TextTransition.js:13:0 Module not found: Can't resolve 'prop-types'

i am using "next": "latest", "react": "18.2.0", "react-dom": "18.2.0",

any solution for this?

stefandev15 commented 1 year ago

Running npm i prop-types should fix your problem!

idindrakusuma commented 1 year ago

Since this package use Typescript. I think no need to use prop-types again. I'm creating the PR for the fix https://github.com/WinterCore/react-text-transition/pull/64

idindrakusuma commented 1 year ago

Hi @Lekhrajk This issue should be solved by updating to v3.1.0.

I will close this issue, and feel free to re-open again if you still facing the issue. Thank you!

Lekhrajk commented 1 year ago

Ok will check. Thanks for your answer