Chartjs-Chart.js not deploying properly on Heroku

1๐Ÿ‘

I found an alternate solution to this problem. I sourced a CDN for Chart.js and that worked. It seems that Chart.js was deploying with my app for some reason so I decided to source it from a cdn and that did the trick

 <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js"></script>

0๐Ÿ‘

I ahve that error when I have a mistake on the src property of my libs.

check that this line is ok:

<script src="assets/libs/angular-chart.js/dist/angular-chart.min.js"></script>

Maybe you misspell the src path.

What about if you change to this <script src="assets/libs/angular-chart/dist/angular-chart.min.js"></script> I think that angular-chart.js is not the name of the folder

0๐Ÿ‘

Check your angular.json file for Chart.min.js and change both instances to all lowercase. Heroku is case sensitive.

Worked for me using Angular 13.

Leave a comment