vasturiano / react-force-graph

React component for 2D, 3D, VR and AR force directed graphs
https://vasturiano.github.io/react-force-graph/example/large-graph/
MIT License
2.25k stars 284 forks source link

Uncaught TypeError: Cannot read property 'children' of undefined #247

Open ZanQ opened 3 years ago

ZanQ commented 3 years ago

Hi there, I'm unable to figure out why this is happening hence I was turning to the community for help in resolving this.

Here is the entire error message

three-forcegraph.module.js:338 Uncaught TypeError: Cannot read property 'id' of undefined at _objectSpread2.objBindAttr (three-forcegraph.module.js:338) at data-joint.module.js:260 at Array.forEach () at viewDigest (data-joint.module.js:255) at threeDigest (three-forcegraph.module.js:335) at Function.update (three-forcegraph.module.js:1170) at kapsule.module.js:112 at later (index.js:27)

I basically send in a json with 7 nodes and 6 links, they are all there ... but with one duplicate. I don't know how got there as I'm printing out the node before the call, and there aren't any extra nodes.

Here are some of the screenshots.

nodes_without_links with_confirmation

vasturiano commented 3 years ago

@ZanQ thanks for reaching out.

Could you make a reproduceable basic example on https://codesandbox.io/ that can be used to debug this?

ZanQ commented 3 years ago

HI @vasturiano, my apologies on the tardy reply. I'll recode the entire part again, and if it doesn't work then I'll submit it to a sandbox. Seems to be an issue with the way I've called the Three library.

schobernoise commented 11 months ago

I just encountered the same error image

I have a fairly complex application and hope to have time providing you with a standalone example the next few days @vasturiano . But here is some input for now: