swimlane / ngx-graph

Graph visualization library for angular
https://swimlane.github.io/ngx-graph
MIT License
926 stars 285 forks source link

Angular 11 swimlane/ngx-graph@7.2.0 obsolete dependence #383

Closed VasylSemkiv closed 2 years ago

VasylSemkiv commented 3 years ago

Describe the bug Peer warnings thrown when npm install: npm WARN @swimlane/ngx-graph@7.2.0 requires a peer of @angular/animations@6.x || 7.x || 8.x || 9.x || 10.x but none is installed. You must install peer dependencies yourself. npm WARN @swimlane/ngx-graph@7.2.0 requires a peer of @angular/common@6.x || 7.x || 8.x || 9.x || 10.x but none is installed. You must install peer dependencies yourself. npm WARN @swimlane/ngx-graph@7.2.0 requires a peer of @angular/core@6.x || 7.x || 8.x || 9.x || 10.x but none is installed. You must install peer dependencies yourself. npm WARN @swimlane/ngx-graph@7.2.0 requires a peer of @angular/cdk@6.x || 7.x || 8.x || 9.x || 10.x but none is installed. You must install peer dependencies yourself.

Expected behavior No warnings should be thrown.

cdupetit commented 3 years ago

Hello, Do you have any release date for a version that fix this issue ? It cause issue on angular update process.

Installing packages for tooling via npm.
Installed packages for tooling via npm.
Using package manager: 'npm'
Collecting installed dependencies...
Found 55 dependencies.
Fetching dependency metadata from registry...
                  Package "@swimlane/ngx-graph" has an incompatible peer dependency to "@angular/cdk" (requires "6.x || 7.x || 8.x || 9.x || 10.x", would install "11.2.10").
    Updating package.json with dependency @angular-devkit/build-angular @ "0.1102.10" (was "0.1102.9")...
    Updating package.json with dependency @angular/cli @ "11.2.10" (was "11.2.9")...
    Updating package.json with dependency @angular/compiler-cli @ "11.2.11" (was "11.2.10")...
    Updating package.json with dependency @angular/language-service @ "11.2.11" (was "11.2.10")...
    Updating package.json with dependency @angular/animations @ "11.2.11" (was "11.2.10")...
    Updating package.json with dependency @angular/cdk @ "11.2.10" (was "11.2.9")...
    Updating package.json with dependency @angular/common @ "11.2.11" (was "11.2.10")...
    Updating package.json with dependency @angular/compiler @ "11.2.11" (was "11.2.10")...
    Updating package.json with dependency @angular/core @ "11.2.11" (was "11.2.10")...
    Updating package.json with dependency @angular/forms @ "11.2.11" (was "11.2.10")...
    Updating package.json with dependency @angular/localize @ "11.2.11" (was "11.2.10")...
    Updating package.json with dependency @angular/material @ "11.2.10" (was "11.2.9")...
    Updating package.json with dependency @angular/platform-browser @ "11.2.11" (was "11.2.10")...
    Updating package.json with dependency @angular/platform-browser-dynamic @ "11.2.11" (was "11.2.10")...
    Updating package.json with dependency @angular/router @ "11.2.11" (was "11.2.10")...
    Updating package.json with dependency @angular/service-worker @ "11.2.11" (was "11.2.10")...
  UPDATE package.json (3015 bytes)
⠴ Installing packages (npm)...npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: @angular/animations@11.2.10
npm ERR! node_modules/@angular/animations
npm ERR!   @angular/animations@"^11.2.11" from the root project
npm ERR!   peer @angular/animations@"^11.0.0 || ^12.0.0-0" from @angular/material@11.2.9
npm ERR!   node_modules/@angular/material
npm ERR!     @angular/material@"11.2.10" from the root project
npm ERR!   2 more (@angular/platform-browser, @swimlane/ngx-charts)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! @angular/animations@"^11.2.11" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/core@11.2.11
npm ERR! node_modules/@angular/core
npm ERR!   peer @angular/core@"11.2.11" from @angular/animations@11.2.11
npm ERR!   node_modules/@angular/animations
npm ERR!     @angular/animations@"^11.2.11" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See E:\cdupetit\AppData\Roaming\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     E:\cdupetit\AppData\Roaming\npm-cache\_logs\2021-04-23T14_18_20_304Z-debug.log
✖ Package install failed, see above.
× Migration failed. See above for further details.

Thanks in advance. Regards

vrxj81 commented 3 years ago

8.0.0-rc1 doesn't have these obsolete dependencies

OliverUlm commented 3 years ago

Is there any planned release date for 8.0.0? Or are their any known issues with 8.0.0-rc1 that are currently being worked on?

JonasSL commented 2 years ago

I'm also waiting for this library to be updated - any news?

marjan-georgiev commented 2 years ago

8.0.0 has been published with support for up to angular 13.