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.

_emscripten_bind_Graphviz_Graphviz_2.apply is not a function

See original GitHub issue

I get this error _emscripten_bind_Graphviz_Graphviz_2.apply is not a function when running the basic graphviz('#graph', false) .renderDot('digraph {a -> b}') .logEvents(true) .onerror((err) => { console.log(err); }); demo. The error throws at layoutStart. Has anyone seen that before?

I am using it with Angular, and Angular uses webpack under the hood.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kevanslumincommented, Aug 30, 2022

I had hpcc-js/wasm as a dependency in my project and so the final bundled js had the module included twice, and I think the two wasmTables were colliding. I removed it as a dependency from my project so that only the one include by d3-graphviz ended up in the final js, and then it worked, thanks.

1reaction
magjaccommented, Aug 29, 2022

Sorry, I don’t know what’s wrong, but I think it’s something Angular specific. I think Stack Overflow is a better place to ask for help. Possibly could https://github.com/magjac/d3-graphviz-angular/pull/13 help you too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not able to bind function in emscripten - Stack Overflow
I'm not familiar with emscripten, but I notice that you're using “Module.lerp”, whereas what you pass to EMSCRIPTEN_BINDINGS is my_module. – ...
Read more >
External Resources - Graphviz
These are some external resources. The list includes tools that complement Graphviz, such as graph generators, postprocessors and ...
Read more >
"TypeError: caller is not a function" on multi-thread Embind's ...
I'm getting the "TypeError: caller is not a function" JavaScript exceptions when trying to use/build emscripten::val objects in different ...
Read more >
Function Pointer Issues - Emscripten
The workaround is to pass the structure by reference, or simply not mix C and C++ in that location (for example, rename the...
Read more >
Embind does not seem to recognize std::function (unbound type)
I am trying to use a simple C++ program containing using std::function with Embind. ... #include <emscripten/bind.h> ... emcc --bind foo.cpp -o foo.js....
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