Dependency Tree error

1:48:42 PM: npm ERR! code ERESOLVE

1:48:42 PM: npm ERR! ERESOLVE unable to resolve dependency tree

1:48:42 PM: npm ERR!

1:48:42 PM: npm ERR! While resolving: argon-dashboard-react@1.2.0

1:48:42 PM: npm ERR! Found: react@17.0.1

1:48:42 PM: npm ERR! node_modules/react

1:48:42 PM: npm ERR! react@“17.0.1” from the root project

1:48:42 PM: npm ERR!

1:48:42 PM: npm ERR! Could not resolve dependency:

1:48:42 PM: npm ERR! peer react@"^16.3.0" from react-bootstrap-table-next@4.0.3

1:48:42 PM: npm ERR! node_modules/react-bootstrap-table-next

1:48:42 PM: npm ERR! react-bootstrap-table-next@"^4.0.3" from the root project

1:48:42 PM: npm ERR!

1:48:42 PM: npm ERR! Fix the upstream dependency conflict, or retry

1:48:42 PM: npm ERR! this command with --force, or --legacy-peer-deps

1:48:42 PM: npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

1:48:42 PM: npm ERR!

1:48:42 PM: npm ERR! See /opt/buildhome/.npm/eresolve-report.txt for a full report.

1:48:42 PM: npm ERR! A complete log of this run can be found in:

1:48:42 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-01-15T08_18_42_144Z-debug.log

1:48:42 PM: Error during NPM install

1:48:42 PM: Build was terminated: Build script returned non-zero exit code: 1

any solutions?

Welcome to the forums @VighneshNaik

The answer to overcome such an issue is provided in the following post

(Note: while the modules are different, the solution is the same.)

If you are still having issue, do not hesitate to reply here.