nagix / chartjs-plugin-colorschemes

Predefined color schemes for Chart.js
MIT License
271 stars 59 forks source link

Error during npm install #32

Closed Zxcid closed 2 years ago

Zxcid commented 2 years ago

I triend to install this package with ng2-charts v3.0.8 and chart.js v3.6.0 but I get a dependency error:

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: **edited@0.0.0 npm ERR! Found: chart.js@3.6.0 npm ERR! node_modules/chart.js npm ERR! chart.js@"3.6.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer chart.js@">= 2.5.0 < 3" from chartjs-plugin-colorschemes@0.4.0 npm ERR! node_modules/chartjs-plugin-colorschemes npm ERR! chartjs-plugin-colorschemes@"" 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.

Does it say it still requires chart.js version to be lower than 3?

Zxcid commented 2 years ago

I'm closing this issue since I did misread another one and tought that the latest version already added compatibility with v3 or higher. Sorry