I am getting the dependency error while running npm install from the ADO build pipeline.
I tried --force but still the same problem.
After adding react-rte packge, ADO pipeline is failing but I am not getting this error when I run the same in my local VS code.
Any help will be greatly appreciated.
Thanks,
Error from ADO pipeline:
; node version = v18.15.0
..
; npm version = 9.5.0
...
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-rte@0.16.5
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from the root project
npm ERR! peer react@"^18.0.0" from @testing-library/react@13.4.0
npm ERR! node_modules/@testing-library/react
npm ERR! @testing-library/react@"^13.4.0" from the root project
npm ERR! 5 more (draft-js, react-dom, react-router, react-router-dom, react-scripts)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"0.14.x || 15.x.x || 16.x.x || 17.x.x" from react-rte@0.16.5
npm ERR! node_modules/react-rte
npm ERR! react-rte@"^0.16.5" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react@17.0.2
npm ERR! node_modules/react
npm ERR! peer react@"0.14.x || 15.x.x || 16.x.x || 17.x.x" from react-rte@0.16.5
npm ERR! node_modules/react-rte
npm ERR! react-rte@"^0.16.5" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Hi All,
I am getting the dependency error while running npm install from the ADO build pipeline. I tried --force but still the same problem. After adding react-rte packge, ADO pipeline is failing but I am not getting this error when I run the same in my local VS code. Any help will be greatly appreciated. Thanks,
Error from ADO pipeline:
package.json