Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'bool' of undefined #16

Open
psleal opened this issue Jul 18, 2019 · 9 comments
Open

Uncaught TypeError: Cannot read property 'bool' of undefined #16

psleal opened this issue Jul 18, 2019 · 9 comments

Comments

@psleal
Copy link

psleal commented Jul 18, 2019

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!

@lightsinthesky
Copy link
Owner

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

@lightsinthesky
Copy link
Owner

yarn add react-node-graph@next

@psleal
Copy link
Author

psleal commented Jul 23, 2019

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

@leshleekor
Copy link

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

@shafferchance
Copy link
Contributor

I believe the open PR will fix this issue

@paillave
Copy link

paillave commented May 4, 2020

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?

@shafferchance
Copy link
Contributor

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
Copy link
Contributor

The new changes were never published to npm

@shafferchance
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants