valor-software / ng2-charts

Beautiful charts for Angular based on Chart.js
http://valor-software.github.io/ng2-charts/
MIT License
2.34k stars 572 forks source link

Angular 18 support and chart.js interop in v6.0.1 #1981

Open vzakharov-rxnt opened 1 week ago

vzakharov-rxnt commented 1 week ago

Reproduction of the problem

I am unable to build a project using ng-charts when Angular is bumped to 18 from 17. Here is the error: image

As you can see, the error is inside ng-charts.provider.d.ts and is not related to my code in any way.

There is no such thing as chart.js/dist/types: image

There is a file called utils.d.ts under here: chart.js\types\ image

Have you tried using Angular 18 with ng-charts? It seems that a bump from 17->18 was the most breaking, we had other issues as well.

vzakharov-rxnt commented 1 week ago

This version seems to have no such issues (but ofc we have other build issues from other vendors).

Means I cannot test/confirm the functionality.

"ng2-charts": "5.0.4",