react-lottie
react-lottie copied to clipboard
peerDependencies : react^17.0.0
We have been using this package for quite a while with [email protected] and it works fine with it. thus extending peerDep for the same since we usually get conflicting peerDep issue
Could not resolve dependency:
npm ERR! peer react@"^0.14.7 || ^15.0.0 || ^16.0.0" from [email protected]
npm ERR! node_modules/react-lottie
npm ERR! react-lottie@"^1.2.3" from the root project
Found: [email protected]
Please review, merge and deploy on npm if you find it useful.
I think this can now also be extended to react@18
@chenqingspring any chance we could merges and react^18.0.0 change? encountering same issue
As a workaround for future readers: i patched locally using npx patch-package
(make sure to follow this special instruction since patch-package usually ignores package.json changes: https://github.com/ds300/patch-package/issues/128#issuecomment-1629061192 )
Just use this:
npm uninstall react-lottie
npm install Amelixx/react-lottie
which is on a fork.