Cannot read property 'graphvizVersion' of undefined
See original GitHub issueHello! I contribute to a VS Code extension that uses d3-graphviz
for one of its features. While trying to upgrade the dependencies, including d3-graphviz 4.0.0
to 4.1.0
, I noticed that the feature broke with the error in the issue title.
I don’t really have experience with the Node ecosystem, so it’s quite likely that I messed something up. Perhaps you might have an idea?
See https://github.com/rust-analyzer/rust-analyzer/pull/11821 for more details. The relevant code is https://github.com/rust-analyzer/rust-analyzer/blob/deb5c14/editors/code/src/commands.ts#L485-L541.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Using d3-graphviz results in can't read property '__graphviz__ ...
UPDATE: I found the answer. The error is being thrown because the dom object (div) is not rendered yet when rendering the diagram....
Read more >Uncaught TypeError: Cannot read property 'x' of undefined ...
Please provide a complete test case that illustrates the problem. Also please specify which Chrome version you are using, latest is perishable.
Read more >"global is undefined" when using viz.js through d3-graphviz
The error I'm getting on your notebook is a bit different than what you have written down: Cannot read property 'Int8Array' of undefined....
Read more >d3-graphviz - npm
d3-graphviz. Renders SVG from graphs described in the DOT language using the @hpcc-js/wasm port of Graphviz and does animated transitions between graphs.
Read more >Cannot read property 'name' of undefined, at Array.forEach
TypeError : Cannot read property 'name' of undefined, at Array.forEach. When I press the button to display the task pane, I am seeing...
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
This issue is fixed in version 4.1.1.
I can now confirm that this is a bug in d3-graphviz. It seems that the new
graphvizVersion()
does not work when using a web worker. Here’s a workaround: