Uncaught TypeError: Cannot read property 'category10' of undefined
See original GitHub issueI got the error message “Uncaught TypeError: Cannot read property ‘category10’ of undefined” generated by lib/utils/index.js line:129,
var overlayColors = exports.overlayColors = _d2.default.scale.category10();
I have traced and it seem _d2.default.scale is undefined.
This error occurred when I tried to embed the bundle.js (generated by browserify) into existing site. No error message if the bundle.js is running on standalone page.
Do you have any hints or know what are the possible causes of this issue? If yes, please share with me because I’ve already spent numerous days trying to resolve this and I ran out of ideas.
Thanks in advance!
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
C3JS - Cannot read property 'category10' of undefined
I solved the exact same JavaScript error on another project by downgrading from D3.js v4 (4.1.1) to v3 (3.5.17). It turns out that...
Read more >C3JS - Cannot read property 'category10' of undefined-d3.js
js is based on D3 v3, and the error occurs when try to run with D3 v4. The error occurs on below line...
Read more >C3JS – Cannot read property 'category10' of undefined
c3.js:5783 Uncaught TypeError: Cannot read property 'category10' of undefined. I tried different versions of c3.js but nothing.
Read more >c3 js, cannot read property 'category10' of undefined, cannot read ...
Uncaught TypeError: Cannot read property 'not' of undefined In basic terms, undefined means that a variable has been declared but has not yet...
Read more >Cannot read property 'noResults' of undefined when ...
autocomplete.js?6a58:41 Uncaught (in promise) TypeError: Cannot read property 'noResults' of undefined at eval (autocomplete.js?6a58:41)
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
For what it’s worth, I solved the exact same JS error on another project by downgrading from D3.js v4 (4.1.1) to v3 (3.5.17).
Same here… I had to downgrade to get it to work.