I am trying to upgrade to the freshly released [email protected] on my project that is also using react-redux@^4.4.0 package. However when I try to run the upgrade suggested in the documentation (https://facebook.github.io/react/blog/2016/03/07/react-v15-rc1.html)
npm install --save [email protected] [email protected]
It comes up with an error because the versions are not compatible:
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.7
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0
Any suggestion please?
You'll also need to install Redux and set up a Redux store in your app. React-Redux v8 is written in TypeScript, so all types are automatically included.
To solve the error "Module not found: Error: Can't resolve 'redux'", make sure to install the redux package by opening your terminal in your project's root directory and running the command npm install redux react-redux and restart your development server. Copied!
I just published [email protected]
which allows React 15 as a peer dependency.
Note that you can use [email protected]
which doesn’t enforce peer dependencies. This way, you don’t have to wait for project authors to update their packages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With