plotly / react-cytoscapejs

React component for Cytoscape.js network visualisations
MIT License
483 stars 68 forks source link

Extensions not registering (react + mobx) #61

Open daer-ru opened 4 years ago

daer-ru commented 4 years ago

I copied example with "cytoscape-cose-bilkent" from your readme and have a error No such layout 'cose-bilkent' found. Did you forget to import it and 'cytoscape.use()' it? With "cytoscape.js-popper" i have a error .popper is not a function. With few other extensions a have the same problems :( Could someone help to understand where problem is?

I use: "cytoscape": "3.16.2", "react-cytoscapejs": "1.2.1", "react": "16.13.1", "mobx": "5.15.5"

alexcjohnson commented 4 years ago

And you include the cytoscape-cose-bilkent package and .use() it like in https://github.com/plotly/react-cytoscapejs/blame/master/README.md#L135 ? In general adding layout extensions does work, as we do that in dash-renderer for the callback graph

daer-ru commented 4 years ago

@alexcjohnson yes sure i include the package with .use().

zhangyanf commented 3 years ago

I also have the same probleam,has this problem been solved?

image image

sckhg1367 commented 6 months ago

@zhangyanf Have you solved it?