React-router: Invalid React peer dependency - react-router-redux and React 16

Created on 27 Sep 2017  Â·  5Comments  Â·  Source: ReactTraining/react-router

After updating to React 16 - installing [email protected] warns about invalid peer dependency.

npm install --save react-router-redux@next
npm WARN saveError Problems were encountered
npm WARN saveError Please correct and try again.
npm WARN saveError peer invalid: react@^15, required by [email protected]

The peerDependencies declaration in package.json seems to be the issue.

"peerDependencies": {
    "react": "^15"
}

Most helpful comment

It's fixed on master, but hasn't been published yet. There are a few more things to get in there, but I'll try to publish an update soon.

All 5 comments

It's fixed on master, but hasn't been published yet. There are a few more things to get in there, but I'll try to publish an update soon.

+1 😱

[email protected] /Users/damz/Desktop/reax-form-sample
└─┬ [email protected]
  └── [email protected]  extraneous

I'm using just react-router and redux separately, must I use react-router-redux ? what is for ?

Nope, you don't have to use it at all.

thanks, i hope not be important ;-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Waquo picture Waquo  Â·  3Comments

yormi picture yormi  Â·  3Comments

ryansobol picture ryansobol  Â·  3Comments

hgezim picture hgezim  Â·  3Comments

tomatau picture tomatau  Â·  3Comments