2017-10-23 22 views
1

React 16に移行した後に、不正なピア依存関係が存在するとの警告が表示されました。React 16 - 不正なピア依存関係

糸でこれらを避けるにはどうしたらいいですか?

私はすべてのパッケージを取り除き、糸を取り除き、糸をもう一度追加してみました。

warning "[email protected]" has incorrect peer dependency "[email protected]>=0.14.0 <16.0.0". 
warning "[email protected]" has incorrect peer dependency "[email protected]^0.14.0 || ^15.0.0". 
warning "[email protected]" has incorrect peer dependency "[email protected]^0.14.0 || ^15.0.0". 
warning "[email protected]" has incorrect peer dependency "[email protected]^0.14.7 || ^15.0.0". 
warning "[email protected]" has incorrect peer dependency "[email protected]^15.5.4". 
warning "[email protected]" has incorrect peer dependency "[email protected]^15.5.4". 
warning "[email protected]" has unmet peer dependency "[email protected] || 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 "[email protected]^0.14.0 || ^15.0.0-0". 
warning "[email protected]" has incorrect peer dependency "[email protected]^0.14.0 || ^15.0.0-0". 
warning "[email protected]" has incorrect peer dependency "[email protected]^0.14.8 || ^15.0.1". 
warning "[email protected]" has incorrect peer dependency "[email protected]<1.10.0 || >1.10.0 <4". 
warning "[email protected]" has incorrect peer dependency "[email protected]^1.0.0-beta.16". 
warning "[email protected]" has incorrect peer dependency "[email protected]^15.4.2". 
warning "[email protected]" has unmet peer dependency "[email protected]^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0". 
+0

この質問はあなたの回答に役立つかもしれません:https://stackoverflow.com/questions/42361942/when-installing-packages-with-yarn-what-does-incorrect-peer-dependency-mean –

答えて

0

'糸のアップグレード'を実行します。これは、間違った依存関係の多くを解決するはずです。その後、残りのパッケージのバージョンを適切なものに変更する必要がありますが、一部のパッケージは期限切れになることが予想されます。

関連する問題