d3-dot-graph icon indicating copy to clipboard operation
d3-dot-graph copied to clipboard

Cannot read property 'links' of null

Open baswag opened this issue 7 years ago • 7 comments

When trying to run the example, nothing is displayed and in the console the error "Uncaught TypeError: Cannot read property 'links' of null" is thrown. Additionally the parameter "graph" is null instead of the graph.

baswag avatar Sep 25 '17 07:09 baswag

My guess is that it fails to load data. How do you run it?

gmamaladze avatar Sep 25 '17 07:09 gmamaladze

I run it on XAMPP 7.1.1 with a Chrome 51 derivate (can't use a newer Version because of security policies)

baswag avatar Sep 25 '17 08:09 baswag

Ok. I see. So let me check again. You get this error also when you open this link example right? If so I need to check for compatibility issues.

gmamaladze avatar Sep 25 '17 08:09 gmamaladze

The error is also thrown ehen using the link.

baswag avatar Sep 25 '17 09:09 baswag

I got this error as well, not with the example but with other dot files. When I'm catching the exception like this:

d3.dot("the.dot", function(graph, error) {//the.dot
    if (error) throw error;

I get following error log:

ReferenceError: _ is not defined
    at peg$c23 (d3-dot-graph.js:205)
    at peg$parseaList (d3-dot-graph.js:1287)
    at peg$parseattrListBlock (d3-dot-graph.js:1138)
    at peg$parseattrList (d3-dot-graph.js:1058)
    at peg$parseattrStmt (d3-dot-graph.js:768)
    at peg$parsestmt (d3-dot-graph.js:732)
    at peg$parsestmtList (d3-dot-graph.js:590)
    at peg$parsegraphStmt (d3-dot-graph.js:505)
    at peg$parsestart (d3-dot-graph.js:426)
    at Object.peg$parse [as parse] (d3-dot-graph.js:2415)

paulbauriegel avatar Jan 12 '18 20:01 paulbauriegel

I'm also getting the same error with other dot files

mingfang avatar Dec 05 '18 03:12 mingfang

I got the same error :( did you find any workaround?

dregaladodiaz avatar Nov 20 '21 15:11 dregaladodiaz