defaults = _chart["defaults"].defaults is undefined
See original GitHub issueHi and greattings, i maked a project in cube.js and afther that a “dashboard-app” of type ‘real time dashboard’ everything is ok until I run the app and response whit that message:
TypeError: _chart.default is undefined
and i could’t advanced afther that.
so i goes to the file
node_modules/react-chartjs-2/es/index.js:644
and I make a log of the variable ‘_chart’ and I see that only exist the field “_chart[“default”]”
so i fix the error whit this:
// I change this:
// var defaults = _chart["default"].defaults;
// For this:
var defaults = _chart["defaults"];
I hope someone can fix this or use that issue for help
Issue Analytics
- State:
- Created 2 years ago
- Comments:19
Top Results From Across the Web
TypeError: Cannot read property 'defaults' of undefined when ...
The error that shows is the following: TypeError: Cannot read property 'defaults' of undefined (anonymous function) C ...
Read more >Defaults" Of Undefined" Error While Using Reactchartjs2
DataTables: Uncaught TypeError: Cannot read property 'defaults' of undefined. Solution: The problem is that dataTable is not defined at the point you are....
Read more >Chart.defaults.global.tooltips is undefined in AngularJS-Chart.js
Coding example for the question TypeError: Chart.defaults.global.tooltips is undefined in AngularJS-Chart.js.
Read more >Fonts | Chart.js
There are special global settings that can change all of the fonts on the chart. These options are in Chart.defaults.font .
Read more >How to use the react-chartjs-2.defaults.global function ... - Snyk
defaults.global.animation = false; const loadSheetPropertiesIntoState = ( that, columnCount, thumbCount, secondsPerRowTemp = undefined, ) => { that.setState({ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Might be good to put this requirement on 2.9.4 in the readme. Right now, when I come to this repo and try out the library, it is broken out of the box
Using chart.js 2.9.4 does not seem to fix this.
Here are my dependencies:
I have also verified that 2.9.4 is the version installed in my node_modules folder.
Here is my code:
Here is the error: