-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
Cannot use react-graph-vis with typescript #80
Comments
instead of "import Graph from 'react-graph-vis" try "import Graph from 'vis-react' " |
It is because there isn't a type declaration file.
|
I'm pretty new to Typescript. So not sure if this is the best way to define the module. But this has been working well for me! https://gist.github.com/ChadJPetersen/2e2587bbd753c6a384c02519183e2031 |
Thanks @ChadJPetersen, that seems to be working for me. Would be cool if this could be published as a |
Hi, I'm trying to add the react-graph-vis feature to my application and I don't know where to put the new configuration. |
I'm trying to use the lib in a TS project, but I'm getting this error:
Could not find a declaration file for module 'react-graph-vis'
I tried
yarn add @types/react-graph-vis
but yarn tell me type definitions does not exists for this lib.Any way to solve this issue?
The text was updated successfully, but these errors were encountered: