question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compatibility with Chart.js 3

See original GitHub issue

Chart.js 3 changes some things, specifically it no longer exports the Chart class as a default export, so react-chartjs-2 fails to start with

Uncaught TypeError: _chart.default is undefined
    <anonymous> index.js:643

Migration guide: https://www.chartjs.org/docs/latest/getting-started/v3-migration.html

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:14
  • Comments:7

github_iconTop GitHub Comments

5reactions
YakovlevCodedcommented, Apr 21, 2021

Hi! We have updated the wrapper. Try to use the latest version ^3.0.2 with Chart.js ^3.x.

3reactions
kenbankspengcommented, Apr 7, 2021

Now wondering if energies would be better put towards https://github.com/xr0master/chartjs-react

Read more comments on GitHub >

github_iconTop Results From Across the Web

3.x Migration Guide - Chart.js
3.x Migration Guide ... it was necessary to break backwards compatibility, but we aimed to do so only when ... Chart.js 3 is...
Read more >
Chart.js 3 compatibility · Discussion #213 - GitHub
In my repositories, this plugin works fine with beta10 of chart.js but I don't use Vue or bundling. My recommendation at this point...
Read more >
chart.js - npm
Simple yet flexible JavaScript charting for designers & developers. Downloads GitHub Workflow Status Coverage Awesome Slack ...
Read more >
Introduction - chartjs-plugin-datalabels
js (opens new window) plugin that displays labels on data for any type of charts. COMPATIBILITY NOTE. Requires Chart.js (opens new window) 3.x ......
Read more >
Web Viewer - Not display page with Javascript using Chart.js
From the Chart.js docs: "As of version 3, we have dropped Internet Explorer 11 support." So if I force it to use v2.9.4...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found