crubier / react-graph-vis

A react component to render nice graphs using vis.js

Home Page:http://crubier.github.io/react-graph-vis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dependency error

odyslam opened this issue · comments

Hey,

Thanks for this awesome package. I am using it as the menu for my website (will share more, perhaps interesting use-case).

Currently, out of a sudden I have this error and I am unable to build the website using Gatsby. Super new to react and web-dev, so I am not sure how to handle this:

npm update         npm WARN ERESOLVE overriding peer dependency
npm WARN Found: graphql@15.5.0
npm WARN node_modules/graphql
npm WARN   graphql@"^15.4.0" from gatsby@3.7.0
npm WARN   node_modules/gatsby
npm WARN     gatsby@"^3.2.1" from the root project
npm WARN     16 more (gatsby-plugin-feed, gatsby-plugin-google-analytics, ...)
npm WARN   1 more (eslint-plugin-graphql)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer graphql@"^14.4.1" from express-graphql@0.9.0
npm WARN node_modules/express-graphql
npm WARN   express-graphql@"^0.9.0" from gatsby@3.7.0
npm WARN   node_modules/gatsby
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: uuid@2.0.3
npm WARN node_modules/react-graph-vis/node_modules/uuid
npm WARN   uuid@"^2.0.1" from react-graph-vis@1.0.7
npm WARN   node_modules/react-graph-vis
npm WARN     react-graph-vis@"^1.0.7" from the root project
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer uuid@"^7.0.0 || ^8.0.0" from vis-data@7.1.2
npm WARN node_modules/react-graph-vis/node_modules/vis-data
npm WARN   vis-data@"^7.1.2" from react-graph-vis@1.0.7
npm WARN   node_modules/react-graph-vis
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: uuid@2.0.3
npm ERR! node_modules/react-graph-vis/node_modules/uuid
npm ERR!   uuid@"^2.0.1" from react-graph-vis@1.0.7
npm ERR!   node_modules/react-graph-vis
npm ERR!     react-graph-vis@"^1.0.7" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer uuid@"^3.4.0 || ^7.0.0 || ^8.0.0" from vis-network@9.0.4
npm ERR! node_modules/react-graph-vis/node_modules/vis-network
npm ERR!   vis-network@"^9.0.0" from react-graph-vis@1.0.7
npm ERR!   node_modules/react-graph-vis
npm ERR!     react-graph-vis@"^1.0.7" from the root project
npm ERR!

This dependency error happened at the same time with gatsbyjs/gatsby#31762 , so they are probably correlated.

Any tips?

(same thing happened to me when I just tried to update a Gatsby 3 project – this had been working fine.)