react-node-graph icon indicating copy to clipboard operation
react-node-graph copied to clipboard

Uncaught TypeError: Cannot read property 'bool' of undefined

Open psleal opened this issue 6 years ago • 9 comments

Hello, I tried to use this module on a new, clean, React project, and I got the following error just by adding the import ReactNodeGraph from 'react-node-graph' line to my App.js file:

image

So, this doesn't work with the newest version of React?

I'm working with: Windows 10 React: 16.8.6, node: 5.6.0

Thank you!

psleal avatar Jul 18 '19 16:07 psleal

use the next branch , I'll probably update this repo in the next few weeks to something useable

lightsinthesky avatar Jul 18 '19 21:07 lightsinthesky

yarn add react-node-graph@next

lightsinthesky avatar Jul 18 '19 21:07 lightsinthesky

Hello, I did the same procedure as before, but this time with the next branch of the module. The error persists.

I'll wait for the next update :) Thank you

psleal avatar Jul 23 '19 16:07 psleal

@lightsinthesky Hello, I have the same error. I tried import ReactNodeGraph from 'react-node-graph', but the error has occured.

leshleekor avatar Oct 16 '19 05:10 leshleekor

I believe the open PR will fix this issue

shafferchance avatar Apr 13 '20 19:04 shafferchance

I get the same issue on this codesandbox with the latest version: https://codesandbox.io/s/hopeful-kilby-tq47z?file=/src/App.tsx

Another question: can it actually work with typescript?

paillave avatar May 04 '20 11:05 paillave

Perhaps actually I have been throwing around typescript with my own projects. I will take a look your code sandbox here can't even find the module. Let me try and make a local instance and see what happens.

shafferchance avatar May 06 '20 04:05 shafferchance

The new changes were never published to npm

shafferchance avatar May 06 '20 04:05 shafferchance

https://codesandbox.io/s/react-node-graph-ov7gr?file=/src/App.tsx

This is running with the new changes. For now I uploaded them in a seperate package until this one is republished. The package is react-node-graph-hook if you want to use. I may make a types file for it later

shafferchance avatar May 06 '20 05:05 shafferchance