Module not found error
See original GitHub issueOverview
Importing produces the following error
Module not found: Can't resolve 'vis/dist/vis-timeline-graph2d.min' in '#############/node_modules/react-visjs-timeline/build'
Package versions
react-visjs-timeline: 1.4.0 vis version: 4.21.0
Steps to reproduce
import {Timelines as TL} from 'react-visjs-timeline';
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top Results From Across the Web
ModuleNotFoundError: no module named Python Error [Fixed]
How to fix the ModuleNotFoundError in Python · 1. Make sure imported modules are installed · 2. Make sure modules are spelled correctly...
Read more >How to Fix ModuleNotFoundError and ImportError
How to fix ModuleNotFoundError and ImportError? · first make sure you are using absolute imports · export the project's root directory to ...
Read more >Python - Module Not Found - Stack Overflow
I got the error ModuleNotFoundError: No module named 'requests.adapters'; 'requests' is not a package. Turns out the file I created in the same...
Read more >Python ModuleNotFoundError Solution - Career Karma
The ModuleNotFoundError is raised when Python cannot locate an error. The most common cause of this error is forgetting to install a module...
Read more >module-not-found - Next.js
Possible Ways to Fix It · The module you're trying to import is not installed in your dependencies · The module you're trying...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jason-weirather thank you for posting your code. I actually got it to work but it had other problems mentioned in other issues. For example, when you switched pages, it didn’t reload correctly. Since the library seems to be updated only occasionally I figured it’s safer to work with
visjs
directly like you did.A couple pointers on your code:
ref
attribute of react like the code below, it’s a lot cleaner.DataSet
component will provide you with the two way binding so it auto updates.I ended up installing vis-timeline instead of vis and it resolved the issue.