[Chartjs]-Angular PrimeNG p-chart chartsjs is not showing

1👍

If anyone is stuck where p-chart shows nothing, check you chrome console log. If you get any Is not a controller, following this

Uninstall chart.js and install chart.js@2.9.4

Finally found a post that explained what was going on.

core.js:4197 ERROR TypeError: chart_js__WEBPACK_IMPORTED_MODULE_2__ is not a constructor

Hope this helps. I was stuck for 2 days.

Leave a comment