ng2-charts icon indicating copy to clipboard operation
ng2-charts copied to clipboard

Cant install ng2-charts because of eslint dependancy

Open blogcraft opened this issue 2 weeks ago • 0 comments

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

ℹ Using package manager: npm
✔ Found compatible package version: [email protected].
✔ Package information loaded.

The package [email protected] 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/[email protected]
npm ERR! Found: @typescript-eslint/[email protected]
npm ERR! node_modules/@typescript-eslint/utils
npm ERR!   @typescript-eslint/utils@"7.8.0" from @typescript-eslint/[email protected]
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/[email protected]
npm ERR!   node_modules/@typescript-eslint/type-utils
npm ERR!     @typescript-eslint/type-utils@"7.8.0" from @typescript-eslint/[email protected]
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/[email protected]
npm ERR! node_modules/@angular-eslint/eslint-plugin
npm ERR!   @angular-eslint/eslint-plugin@"18.1.0" from @angular-eslint/[email protected]
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/[email protected]
npm ERR! node_modules/@typescript-eslint/utils
npm ERR!   peer @typescript-eslint/utils@"^7.11.0 || ^8.0.0-alpha.37" from @angular-eslint/[email protected]
npm ERR!   node_modules/@angular-eslint/eslint-plugin
npm ERR!     @angular-eslint/eslint-plugin@"18.1.0" from @angular-eslint/[email protected]
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.

There seems to be a PR that fixes this, but it has not been merged. https://github.com/valor-software/ng2-charts/pull/1988

blogcraft avatar Jul 02 '24 16:07 blogcraft