Lighthouse-io / react-visjs-timeline

React component for the vis.js timeline module
MIT License
210 stars 91 forks source link

Warning: This build has been deprecated, use peer or standalone instead #101

Open stahlmanDesign opened 4 years ago

stahlmanDesign commented 4 years ago

Overview

react-visjs-timeline is using a deprecated version of vis-timeline

This build has been deprecated vis-timeline-graph2d.min.js

In case you are importing this through a URL it will result in a 404 eventually. In case you are importing this through Node it will be replaced by the peer build eventually.

Please use the peer or standalone build instead. Peer: https://visjs.github.io/vis-timeline/examples/timeline/peer-build.html Standalone: https://visjs.github.io/vis-timeline/examples/timeline/standalone-build.html

Package versions

"react-visjs-timeline": "^1.6.0",
"vis-timeline": "^7.1.0"

Screenshots (if appropriate)

image

If I understand correctly, instead of importing vis-timeline-graph2d.min.js, react-visjs-timeline should import like this (peer build):

import { DataSet } from "vis-data";
import { Timeline } from "vis-timeline/peer";

or this (standalone build)

import { DataSet, Timeline } from "vis-timeline/standalone";
BEllis0 commented 2 years ago

No update on this?

didemkome-GE commented 2 years ago

I am getting error like this.

error
kukibar commented 1 year ago

This is the link to the version that fixed the bug.

https://github.com/kukibar/react-visjs-timeline/blob/master/src/index.js