I am using vis timeline in a React project. However, I get this error when I try to enable rollingMode in the timeline. This is my function that returns a options object:
When rollingMode is left out, the timeline works without problems.
With rollingMode enabled I get this error:
vis.js?4f27:8826 Uncaught Error: Invalid start "NaN"
at Range._applyRange (vis.js?4f27:8826)
at Range.setRange (vis.js?4f27:8763)
at update (vis.js?4f27:8643)
at Range.startRolling (vis.js?4f27:8656)
at Range.setOptions (vis.js?4f27:8602)
at new Range (vis.js?4f27:8574)
at new Timeline (vis.js?4f27:40729)
at Timeline.eval [as componentDidUpdate] (Timeline.tsx?dea2:61)
at commitLifeCycles (react-dom.development.js?61bb:16242)
at commitAllLifeCycles (react-dom.development.js?61bb:17592)
It seems it is an issue when using Timeline in React. When I call it with a timeout it works.
I am using vis timeline in a React project. However, I get this error when I try to enable rollingMode in the timeline. This is my function that returns a options object:
When rollingMode is left out, the timeline works without problems. With rollingMode enabled I get this error:
It seems it is an issue when using Timeline in React. When I call it with a timeout it works.