NPM cannot resolve peer dependency when attempting to install component #6533
Answered
by
sven-gerlach
sven-gerlach
asked this question in
Help
-
I have created a simple useQueryStrings component (see below). I have uploaded this component into Bit cloud and attempted to install it in another project. However, npm throws an error (see below) since the installed react version is ^18 whilst the peer dependencies of the component require v16 || v17. How can I either relax that peer dependency constraint or add react v18 to the peer dependencies? |
Beta Was this translation helpful? Give feedback.
Answered by
sven-gerlach
Oct 14, 2022
Replies: 1 comment
-
I should have read the docs more carefully. There are actually two solutions to this problem.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sven-gerlach
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I should have read the docs more carefully. There are actually two solutions to this problem.
bit deps
command.