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

peerDependencies : react^17.0.0

Open induratized opened this issue 2 years ago • 4 comments

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.

induratized avatar Oct 27 '22 11:10 induratized

I think this can now also be extended to react@18

DivyanshBatham avatar Jun 09 '23 12:06 DivyanshBatham

@chenqingspring any chance we could merges and react^18.0.0 change? encountering same issue

stevenqzhang avatar Nov 15 '23 18:11 stevenqzhang

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 )

stevenqzhang avatar Nov 15 '23 18:11 stevenqzhang

Just use this:

npm uninstall react-lottie
npm install Amelixx/react-lottie

which is on a fork.

MichaelCurrie avatar Aug 11 '24 18:08 MichaelCurrie