creativetimofficial / argon-dashboard-angular

MIT License
182 stars 549 forks source link

[Error] Chart.elements.Rectangle.prototype.draw error "elements" when @types/chart.js is installed #17

Closed fernandomartinsrib closed 4 years ago

fernandomartinsrib commented 4 years ago

Hi, in my project appeared a requirement of utilize ChartDataLabels, but ChartDataLabels require @types/chart.js, so when I import @types/chart.js, Chart.elements.Rectangle.prototype.draw (inside variables/chart.ts) don't work, showing of the error:

ERROR in src/app/variables/charts.ts:7:7 - error TS2339: Property 'elements' does not exist on type 'typeof import(".../node_modules/@types/chart.js/index.d.ts")'.

7 Chart.elements.Rectangle.prototype.draw = function() {
        ~~~~~~~~
github-actions[bot] commented 4 years ago

@fernandomartinsrib this issue was automatically closed because it did not follow the bellow rules:


IMPORTANT: Please use the following link to create a new issue:

https://www.creative-tim.com/new-issue/argon-dashboard-angular

**If your issue was not created using the app above, it will be closed immediately.**

Love Creative Tim? Do you need Angular, React, Vuejs or HTML? You can visit:
👉  https://www.creative-tim.com/bundles
👉  https://www.creative-tim.com