You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is easily fixed by changing import from vis/dist/vis-timeline-graph2d.min to vis/index-timeline-graph2d.js.
Currently I'm using a workaround via a webpack alias:
Overview
https://github.com/Lighthouse-io/react-visjs-timeline/blob/master/src/index.js#L1
This import includes a built vis.js bundle, with its own moment.js included. This increases output size and, most importantly, causes issues with moment.js locale configuration (because vis.js dist bundle uses its own copy of moment).
Package versions
react-visjs-timeline: 1.5.0
vis version: 4.21.0
Suggested fix
This is easily fixed by changing import from
vis/dist/vis-timeline-graph2d.min
tovis/index-timeline-graph2d.js
.Currently I'm using a workaround via a webpack alias:
This solves my issue with moment.js locales.
The text was updated successfully, but these errors were encountered: