Overview
build fails with error:
Failed to compile
./node_modules/react-vis-timeline/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-vis-timeline": "^2.0.3",
"vis": "^4.21.0-EOL",
Steps to reproduce
I just added the sample code to my project and it fails. I can comment out the code and it builds fine with my other components. Below is the code from the sample that I added. I have removed my components so you can see the offending code. Am I missing an import or package?
Code Snippet
import React from "react";
import Timeline from "react-vis-timeline";
class Sample extends React.Component {
constructor(props) {
super(props);
}
render() {
const items = [
{
id: 1,
group: 1,
start: "2014-04-20",
end: "2014-04-26",
content: "Test 1",
},
{
id: 2,
group: 2,
start: "2014-04-22",
end: "2014-04-29",
content: "Test 2",
},
];
const groups = [
{
id: 1,
content: "Group 1",
},
{
id: 2,
content: "Group 2",
},
];
const options = {
width: "100%",
height: "450px",
};
return (
<div>
<Timeline
options={options}
initialItems={items}
initialGroups={groups}
/>
</div>
);
}
}
export default Sample;
Overview
build fails with error:
Failed to compile
./node_modules/react-vis-timeline/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-vis-timeline": "^2.0.3",
"vis": "^4.21.0-EOL",
Steps to reproduce
I just added the sample code to my project and it fails. I can comment out the code and it builds fine with my other components. Below is the code from the sample that I added. I have removed my components so you can see the offending code. Am I missing an import or package?
Code Snippet