Conflicting peer dependency: [email protected] #3517
-
How can I downgrade preact react to version 17? When trying to install "mobx-react-lite" and "react-router-dom" together, I get this error. When trying the same thing on react 17 (without preact), it works fine. How do I downgrade preact to version 17?
LS command:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
This isn't related to Preact. The latest release of Preact is v10.7.1, and it doesn't appear in the error message. Your issue is solely to do with installing a version of React that's not supported by one of your dependencies. It looks like you have React 18 installed or one of those dependencies drags in React 18 which is incompatible with the other dep. |
Beta Was this translation helpful? Give feedback.
-
I have a similar problem. I have react 18 installed and I am now trying to install react-router-dom and it keeps on failing. I have used the --force option when doing the installation and it's still not working |
Beta Was this translation helpful? Give feedback.
This isn't related to Preact. The latest release of Preact is v10.7.1, and it doesn't appear in the error message. Your issue is solely to do with installing a version of React that's not supported by one of your dependencies.
It looks like you have React 18 installed or one of those dependencies drags in React 18 which is incompatible with the other dep.