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

Running the examples #3

Open
gusfelhberg opened this issue Oct 29, 2020 · 6 comments
Open

Running the examples #3

gusfelhberg opened this issue Oct 29, 2020 · 6 comments

Comments

@gusfelhberg
Copy link

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

deibid commented Oct 30, 2020

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

@ChadJPetersen
Copy link
Contributor

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

ChadJPetersen added a commit to ChadJPetersen/react-vis-timeline that referenced this issue Nov 3, 2020
Update vis-data vis-timeline and vis-utils to their latest and matching versions. This gets rid of the issue:

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'.
razbensimon pushed a commit that referenced this issue Nov 26, 2020
Update vis-data vis-timeline and vis-utils to their latest and matching versions. This gets rid of the issue:

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'.
@razbensimon
Copy link
Owner

I will deploy a fix thanks

@dotgreg
Copy link

dotgreg commented Nov 29, 2020

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

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

setnone commented Jan 27, 2021

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

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

7 participants