Chartjs-NG0303: Can't bind to 'type' since it isn't a known property of 'canvas'

0👍

You should not install the next branch of ng2-charts, that is an older version as the most recent one, also when using ng2-charts version 3.0 or above you need to make sure you have at least version 3.0 of Chart.js installed, it does not work with version 2.

Using npm i chart.js should not give you 2.9.4 as you claimed, it should install the latest version but to be sure you can just specify the latest versions for both:

npm i chart.js@3.8.2
npm i ng2-charts@3.1.2

Leave a comment