Closed gmsy closed 2 years ago
I'm not one of the resident react experts, but that page might be a little out of date compared to the gojs-react-basic example.
Still, when I pasted the code into a new project, changing it only a little, I did not come across this a.forEach issue. Did you add anything else?
It sounds as if you are not passing an Array as the diagram's model's nodeDataArray.
Thank you guys for the replies. For some reason the example on the official documentation gave me that error, but the gojs-react-basic example did work. Thanks!
Just installed gojs and gojs-react as described on the official documentation, However when I copy-pasted the code sample from that same page ("Rendering the component" section), I get a
TypeError: a.forEach is not a function
(as shown on screenshot).How can I fix that? Thanks.