My project has a dependency on "@angular-eslint/eslint-plugin": "18.1.0", we update angular regularly and eslint too.
But there is a problem when trying to add ng2-charts to the project:
ng add ng2-charts
ℹ Using package manager: npm
✔ Found compatible package version: ng2-charts@6.0.1.
✔ Package information loaded.
The package ng2-charts@6.0.1 will be installed and executed.
Would you like to proceed? Yes
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @angular-eslint/eslint-plugin@18.1.0
npm ERR! Found: @typescript-eslint/utils@7.8.0
npm ERR! node_modules/@typescript-eslint/utils
npm ERR! @typescript-eslint/utils@"7.8.0" from @typescript-eslint/eslint-plugin@7.8.0
npm ERR! node_modules/@typescript-eslint/eslint-plugin
npm ERR! dev @typescript-eslint/eslint-plugin@"^7.2.0" from the root project
npm ERR! @typescript-eslint/utils@"7.8.0" from @typescript-eslint/type-utils@7.8.0
npm ERR! node_modules/@typescript-eslint/type-utils
npm ERR! @typescript-eslint/type-utils@"7.8.0" from @typescript-eslint/eslint-plugin@7.8.0
npm ERR! node_modules/@typescript-eslint/eslint-plugin
npm ERR! dev @typescript-eslint/eslint-plugin@"^7.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @typescript-eslint/utils@"^7.11.0 || ^8.0.0-alpha.37" from @angular-eslint/eslint-plugin@18.1.0
npm ERR! node_modules/@angular-eslint/eslint-plugin
npm ERR! @angular-eslint/eslint-plugin@"18.1.0" from @angular-eslint/schematics@18.1.0
npm ERR! node_modules/@angular-eslint/schematics
npm ERR! dev @angular-eslint/schematics@"18.1.0" from the root project
npm ERR! dev @angular-eslint/eslint-plugin@"18.1.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @typescript-eslint/utils@7.15.0
npm ERR! node_modules/@typescript-eslint/utils
npm ERR! peer @typescript-eslint/utils@"^7.11.0 || ^8.0.0-alpha.37" from @angular-eslint/eslint-plugin@18.1.0
npm ERR! node_modules/@angular-eslint/eslint-plugin
npm ERR! @angular-eslint/eslint-plugin@"18.1.0" from @angular-eslint/schematics@18.1.0
npm ERR! node_modules/@angular-eslint/schematics
npm ERR! dev @angular-eslint/schematics@"18.1.0" from the root project
npm ERR! dev @angular-eslint/eslint-plugin@"18.1.0" 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.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\Gerardo Buenrostro\AppData\Local\npm-cache\_logs\2024-07-02T16_49_27_046Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: C:\Users\Gerardo Buenrostro\AppData\Local\npm-cache\_logs\2024-07-02T16_49_27_046Z-debug-0.log
✖ Packages installation failed, see above.
Reproduction of the problem
My project has a dependency on "@angular-eslint/eslint-plugin": "18.1.0", we update angular regularly and eslint too.
But there is a problem when trying to add ng2-charts to the project:
ng add ng2-charts
There seems to be a PR that fixes this, but it has not been merged. https://github.com/valor-software/ng2-charts/pull/1988