[Chartjs]-How to fix ERROR in node_modules/chart.js/types/animation.d.ts(20,37): error TS1005: ',' expected. in chart.js

5👍

As others have stated, downgrading to chart.js version 2.7.3 fixed this for me. For anyone not super familiar with npm, here’s the commands I used to update the package:

npm remove chart.js --save
npm install chart.js@2.7.3 --save

I specifically did this for my ionic 5 project. But it should also work for angular.

3👍

I try out several solutions but could not find them, So I just downgrade the chartjs 3.5.1 to 2.7.3. So it is working fine.

Leave a comment