eslint-plugin conflick dependencies
package.json use [email protected], depend on @typescript-eslint/eslint-plugin@"2.x" It also use another version of eslint-plugin ( @typescript-eslint/[email protected])
How to fix this? Thanks.
#npm i -D webpack-merge npm WARN idealTree Removing dependencies.webpack-merge in favor of devDependencies.webpack-merge npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: undefined@undefined npm ERR! Found: @typescript-eslint/[email protected] npm ERR! node_modules/@typescript-eslint/eslint-plugin npm ERR! @typescript-eslint/eslint-plugin@"^4.17.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @typescript-eslint/eslint-plugin@"2.x" from [email protected] npm ERR! node_modules/eslint-config-react-app npm ERR! eslint-config-react-app@"^5.2.1" 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.