Version published to NPM doesn't have the correct ngx-charts dependency !
See original GitHub issueI’m submitting a … (check one with “x”)
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here
Current behavior The version currently published on NPM has @swimlane/ngx-charts version 6.1.0 listed as a dependency. This version of ngx-charts is itself dependent on angular 4.x. This creates a type mismatch between the version needed by ngx-charts-dag and ngx-charts and creates that kind of error:
npm WARN @swimlane/ngx-charts-dag@3.0.0 requires a peer of @angular/animations@^4.0.1 | ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @swimlane/ngx-charts-dag@3.0.0 requires a peer of @angular/common@^4.0.1 | ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @swimlane/ngx-charts-dag@3.0.0 requires a peer of @angular/core@^4.0.1 | ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @swimlane/ngx-charts-dag@3.0.0 requires a peer of d3@^4.7.4 but none is installed. You must install peer dependencies yourself.
npm WARN @swimlane/ngx-charts@6.1.0 requires a peer of @angular/common@^4.2.x but none is installed. You must install peer dependencies yourself.
npm WARN @swimlane/ngx-charts@6.1.0 requires a peer of @angular/core@^4.2.x but none is installed. You must install peer dependencies yourself.
npm WARN @swimlane/ngx-charts@6.1.0 requires a peer of d3@^4.9.x but none is installed. You must install peer dependencies yourself.
Here are the current info from NPM:
> npm view @swimlane/ngx-charts-dag dependencies
{ '@swimlane/ngx-charts': '^6.1.0', dagre: '^0.7.4' }
> npm view @swimlane/ngx-charts-dag peerDependencies
{ '@angular/animations': '^4.0.1 | ^5.0.0',
'@angular/common': '^4.0.1 | ^5.0.0',
'@angular/core': '^4.0.1 | ^5.0.0',
d3: '^4.7.4',
rxjs: '^5.0.3' }
> npm view @swimlane/ngx-charts@6.1.0 peerDependencies
{ '@angular/common': '^4.2.x',
'@angular/core': '^4.2.x',
d3: '^4.9.x',
rxjs: '^5.0.x' }
You can see that version 3.0 of ngx-charts-dag and version 6.1.0 of ngx-charts don’t use the same version of Angular.
Expected behavior ngx-charts-dag should depend on the latest version of ngx-charts which supports version 5.x of Angular. It should also remove Angular 4.x from its peer dependencies since 4.x won’t be compatible with ngx-charts anyway. I can see that the version of package.json in the repository has been corrected, but the changes don’t seem to have been pushed to NPM.
Reproduction of the problem Try to do an install with an Angular 5 project.
What is the motivation / use case for changing the behavior? The current deployed version on NPM is not working at all with Angular 5
-
ngx-charts-dag version: 3.0.0
-
Angular version: 5.0.1
- Browser: [all]
- Language: [all]
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (15 by maintainers)

Top Related StackOverflow Question
Sorry if I’m a bit pushy, but that issue is already solved in the repo, all there needs to be done is push a new version to NPM. And it’s breaking the download of the current version.
@kenisteward Please open a separate issue for the MouseWheelDirective error.