'Version Issue in integrating mobx-react in app
I received this error for my app sample-login-page while running npm update
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/mobx-react npm ERR! mobx-react@"5.4.4" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer mobx-react@"^4.3.5" from [email protected] npm ERR! node_modules/bernie-core npm ERR! peer bernie-core@">=0.24.7" from [email protected] npm ERR! node_modules/bernie-test-util npm ERR! dev bernie-test-util@"0.35.4" from the root project npm ERR! peer bernie-core@">=0.25.0" from @gc/[email protected] npm ERR! node_modules/@gc/global-controls-store npm ERR! @gc/global-controls-store@"^0.1.3" from the root project npm ERR! 1 more (bernie-test-util) npm ERR! npm ERR! Fix the upstream dependency conflict, or retry
After upgrading mobx-react by npm install mobx-react --save
I came up with same errors.
After installing mobx-react with specifically required version npm i [email protected]
. Below error is coming up
npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/mobx npm ERR! mobx@"4.15.4" from the root project npm ERR! peer mobx@"^3.4.1 || ^4.0.0" from [email protected] npm ERR! node_modules/bernie-core npm ERR! peer bernie-core@">=0.24.7" from [email protected] npm ERR! node_modules/bernie-test-util npm ERR! dev bernie-test-util@"0.35.4" from the root project npm ERR! peer bernie-core@">=0.25.0" from @gc/[email protected] npm ERR! node_modules/@gc/global-controls-store npm ERR! @gc/global-controls-store@"^0.1.3" from the root project npm ERR! 1 more (bernie-test-util) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer mobx@"^2.6.3 || ^3.0.0" from [email protected] npm ERR! node_modules/mobx-react npm ERR! mobx-react@"4.3.5" from the root project npm ERR! peer mobx-react@"^4.3.5" from [email protected] npm ERR! node_modules/bernie-test-util npm ERR! dev bernie-test-util@"0.35.4" from the root project npm ERR! 2 more (@gc/global-controls-store, bernie-core)
Can someone help me out with suggestions around this?
Solution 1:[1]
You can run this :
npm install mobx-react --save --legacy-peer-deps
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | FacePalm |