antvis / layout

Layout algorithms for graphs.
207 stars 55 forks source link

peerDependency warning from dagre-compound / dagre #172

Open mihkeleidast opened 1 year ago

mihkeleidast commented 1 year ago

Hey all,

we are getting a peer dependency warning when installing this package which we'd like to get resolved:

warning "@antv/layout > dagre-compound@0.0.11" has unmet peer dependency "dagre@^0.8.5".

I guess there are three options:

  1. dagre is not actually a necessary peerDep on dagre-compound. I could not find the source/repo for that package, however, so not sure how to solve this.
  2. dagre is a necessary peerDep. Since dagre-compound is installed by you, you should maybe also install dagre then?
  3. You want to forward the dagre peerDep to consumers. Then it should perhaps be marked in this package's peerDependencies?