adrianhajdin / project_corona_tracker

This is a code repository for the corresponding YouTube video. In this tutorial, we are going to build and deploy a corona tracker application. Covered topics: React.js, Chart.js, Material UI, and much more.
https://covid19statswebsite.netlify.com/
1.45k stars 476 forks source link

A Solution if you encountered problems with Chart.js file #37

Open fjerbi opened 2 years ago

fjerbi commented 2 years ago

If you've encountered an error while working on the Chart.js file : Uncaught Error: "category" is not a registered scale. just add this import in your file : import { Chart as ChartJS } from 'chart.js/auto' and it will fix your issue.

Source