razbensimon / react-vis-timeline

React component for the vis-timeline module
MIT License
62 stars 48 forks source link

Running the examples #3

Open gusfelhberg opened 3 years ago

gusfelhberg commented 3 years ago

Overview

Failure to compile examples

Error message: ./node_modules/vis-timeline/esnext/esm/vis-timeline-graph2d.js Attempted import error: 'isDataViewLike' is not exported from 'vis-data/esnext/esm/vis-data.js'.

Package versions

react-visjs-timeline: 2.0.3 vis version: 4.21.0

Steps to reproduce

I have cloned the repo and tried to run the examples: git clone https://github.com/razbensimon/react-vis-timeline.git cd react-vis-timeline/examples npm install npm start

Code Snippet

I have made no change in the latest code

Related issues

After running and getting the error, I've noticed that the vis package was not installed. I installed it (version 4.21.0), but the error continued the same.

Screenshots (if appropriate)

image image

deibid commented 3 years ago

I'm also having the same problem using the package on its own in my project.

ChadJPetersen commented 3 years ago

For me the issue was I had to update vis-data from ^6.0.0 to ^7.0.0

razbensimon commented 3 years ago

I will deploy a fix thanks

dotgreg commented 3 years ago

Hello and thanks for that project! Definitely excited to see it using the new vis-timeline library

I tried your fix on your last master commit, but the issue is still here unfortunately, I just cloned the repo and npm i & npm run start the ./examples folder

image

Thanks :)

KillianBaillifLS commented 3 years ago

Hello, thanks for the lib ! I'm also trying to run examples, but i'm having the same issues as @dotgreg, i've already checked your last commit and updated my dependencies but it's still not working.

Do you have any clues ?

Thanks :)

setnone commented 3 years ago

@KillianBaillifLS #16 fixed that for me, though the solution is still temporary