DomParfitt / graphviz-react

React component for displaying Graphviz graphs
MIT License
101 stars 21 forks source link

Invalid asm.js: Function definition doesn't match use #66

Closed mikeguo99 closed 1 year ago

mikeguo99 commented 1 year ago

an worning on console:

image

and viz.js?ab64:33 :

image
DomParfitt commented 1 year ago

Hi @atmikeguo, I'm not quite sure what the specific ask is here.

graphviz-react doesn't directly load in viz.js, rather it's a dependency of a dependency (d3-graphviz). So it's likely that this warning is a bug in either d3-graphviz or the particular version of viz.js that the version of d3-graphviz we're using uses. We're also several versions behind the current version of d3-graphviz, due to a breaking change in more recent versions, so it may be that it's not something that's likely to be fixed as it would require backporting to an older version of the package.