-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Console error: Unable to load chart.js #1041
Comments
@willysoria-idtnet the documentation (Readme.md) says: |
Yeah, you are totally right, fixed the typo in the main question, thank you! |
(Simplified answer) |
Got it thanks, but when I install unsing npm there is added this "node_modules/chart.js/src/chart.js" library, and this gives console errores, but if you change manually to use dist folder instead the error disapear, so I was wondering if ther can change the default src folder to use dist instead. |
Reproduction of the problem
Install ng2-charts over angular 7 following the official steps document.
After install you will notice the angular.json file has the following scrips:
This causes the following console error:
Unable to load chart.js
After a lot of time reading I found a fix for this, I manually changed the angular.json file to use this:
"node_modules/chart.js/dist/Chart.bundle.min.js"
Is there a way to avoid doing this manually? Thank you for your time.
The text was updated successfully, but these errors were encountered: