razbensimon / react-vis-timeline

React component for the vis-timeline module
MIT License
64 stars 47 forks source link

new updates are not handled properly through npm install #52

Open dpschaudhary opened 2 years ago

dpschaudhary commented 2 years ago

Overview

Hello, I am trying to npm install react-vis-timeline. But it is not able to resolve dependency. I tried to npm install it forcefully but it is not installing the latest updates that you have made here. It is still using old version.

Package versions

react-visjs-timeline: vis version:

FranzThomsen1089 commented 2 years ago

Did you figure out or are you still on the old version?

dpschaudhary commented 2 years ago

I tried to install it, but it is still not able to resolve dependency. I think there is a need to update version number and publish it again. Thanks for your time and support.

FranzThomsen1089 commented 2 years ago

I'm just someone with same problems ;)

TomHiller-swd commented 2 years ago

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.