Skip to content

Can not install @rainbow-me/rainbowkit #1965

Answered by chloe-tan
leonelosz asked this question in Q&A
Discussion options

You must be logged in to vote

@leonelos-001

I've been running into this problem too. I believe its related to the recent react 18.3.1 upgrade in the rainbowkit deps, causing certain peer dependencies down the tree to break.

A few ways i bypassed this problem while waiting for the other packages to catch up in versioning:

  1. Fix your project's react version to 18.2.0 (meaning not ^18.2.0 or 18.3.1 etc, but the fixed 18.2.0 version), OR
  2. Run npm install --legacy-peer-deps instead to ignore peer dependency errors

Both methods worked for me, but I'd recommend (1) to remain compliant with peer dependencies :)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@leonelosz
Comment options

Answer selected by magiziz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants