Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React 16 - Incorrect Peer Dependency

Tags:

After migrating to React 16 I got a lot of warnings which say that there is an incorrect Peer Dependency.

How can I avoid these with yarn?

I tried removing all packages, removed yarn.lock, and added yarn again.

 warning "[email protected]" has incorrect peer dependency "react@>=0.14.0 <16.0.0".
warning "[email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.0".
warning "[email protected]" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0".
warning "[email protected]" has incorrect peer dependency "react@^0.14.7 || ^15.0.0".
warning "[email protected]" has incorrect peer dependency "react@^15.5.4".
warning "[email protected]" has incorrect peer dependency "react-dom@^15.5.4".
warning "[email protected]" has unmet peer dependency "webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc".
warning "[email protected]" has unmet peer dependency "[email protected] || 0.20.x || 0.22.x || 1.0.0-rc.1".
warning "[email protected]" has incorrect peer dependency "[email protected] || ^2.3.0".
warning "[email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.0-0".
warning "[email protected]" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0-0".
warning "[email protected]" has incorrect peer dependency "react@^0.14.8 || ^15.0.1".
warning "[email protected]" has incorrect peer dependency "chai@<1.10.0 || >1.10.0 <4".
warning "[email protected]" has incorrect peer dependency "material-ui@^1.0.0-beta.16".
warning "[email protected]" has incorrect peer dependency "react-dom@^15.4.2".
warning "[email protected]" has unmet peer dependency "webpack@^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0".
like image 904
Palaniichuk Dmytro Avatar asked Oct 23 '17 13:10

Palaniichuk Dmytro


1 Answers

Run 'yarn upgrade'. It should resolve many of the incorrect dependencies. Then you should change versions of the rest packages to the appropriate ones, but expect some packages to be out of date.

like image 155
pseudoclaws Avatar answered Sep 30 '22 00:09

pseudoclaws