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.

Uncaught TypeError: Cannot read property 'category10' of undefined

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
artobcommented, Jul 13, 2016

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).

0reactions
silveurcommented, Jul 13, 2016

Same here… I had to downgrade to get it to work.

Read more comments on GitHub >

github_iconTop 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 >

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