Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React 15 not compatible with React-redux

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?

like image 242
FedericoCapaldo Avatar asked Mar 09 '16 11:03

FedericoCapaldo


People also ask

Do I need to install React Redux?

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.

Can not find module React Redux?

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!


1 Answers

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.

like image 80
Dan Abramov Avatar answered Oct 16 '22 04:10

Dan Abramov