react-vis-timeline icon indicating copy to clipboard operation
react-vis-timeline copied to clipboard

Support React 17

Open chrisgbaker opened this issue 3 years ago • 3 comments

Overview

Hello! I was curious if React 17 support was on the roadmap to be added to react-visjs-timeline? Thanks!

Package versions

react-visjs-timeline: vis version: @latest

chrisgbaker avatar Dec 03 '21 15:12 chrisgbaker

I've just updated the dependency in the package.json and it's been working fine on React 17 for a while now. I created a PR with the minor change I Made. https://github.com/razbensimon/react-vis-timeline/pull/43

ChadJPetersen avatar Mar 25 '22 15:03 ChadJPetersen

This issue had a fix merged to main in March of this year. However, a new release was never pushed to NPM (last update 2 years ago). Can you please do so so that users of the modern react/nextjs versions can use this?

https://www.npmjs.com/package/react-vis-timeline

Thank you!

grempe avatar Jul 24 '22 22:07 grempe

For anyone using npm v8.3.0 or higher, there is the overrides feature that will allow you to install this package for newer React versions. Add the following to your package.json:

  "overrides": {
    "react-vis-timeline": {
      "react": "$react",
      "react-dom": "$react-dom",
      "vis-data": "^7.1.0",
      "vis-timeline": "^7.4.2",
      "vis-util": "^4.3.4"
    }
  },

$react and $react-dom resolve to the versions of React and React-DOM you have installed, respectively.

TomHiller-swd avatar Sep 06 '22 13:09 TomHiller-swd