Skip to content

Adjust your package constraints to the new ChartJs version

While running npm install I got this issue that it requires ChartJs < 3:

npm WARN using --force Recommended protections disabled.
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: chartjs-adapter-dayjs@1.0.0
npm WARN Found: chart.js@3.9.1
npm WARN node_modules/chart.js
npm WARN   chart.js@"^3.9.1" from the root project
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer chart.js@">= 2.8.0 < 3" from chartjs-adapter-dayjs@1.0.0
npm WARN node_modules/chartjs-adapter-dayjs
npm WARN   chartjs-adapter-dayjs@"*" from the root project
npm WARN 
npm WARN Conflicting peer dependency: chart.js@2.9.4
npm WARN node_modules/chart.js
npm WARN   peer chart.js@">= 2.8.0 < 3" from chartjs-adapter-dayjs@1.0.0
npm WARN   node_modules/chartjs-adapter-dayjs
npm WARN     chartjs-adapter-dayjs@"*" from the root project

But you state in npmjs that you support it:

Requires Chart.js 2.8.0 or later and dayjs 1.9.6 or later.

https://www.npmjs.com/package/chartjs-adapter-dayjs-3-fullexport

Could you adjust the constraint if you support the latest version of ChartJs?

In the meantime I'll force the installation with --force.