question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version published to NPM doesn't have the correct ngx-charts dependency !

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:16 (15 by maintainers)

github_iconTop GitHub Comments

3reactions
Gimlycommented, Nov 28, 2017

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.

0reactions
isaacplmanncommented, Nov 29, 2017

@kenisteward Please open a separate issue for the MouseWheelDirective error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot install ngx-graph with Angular 13.3 - Stack Overflow
I get the following output. npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ...
Read more >
@swimlane/ngx-charts - npm
Declarative Charting Framework for Angular. Latest version: 20.1.2, last published: 20 days ago. Start using @swimlane/ngx-charts in your ...
Read more >
@mibritorxmx/ngx-charts-v1 - NPM Package Overview - Socket
Version: 1.0.5 was published by mibritorxmx. Start using Socket to analyze @mibritorxmx/ngx-charts-v1 and its 13 dependencies to secure your app from supply ...
Read more >
swimlane/ngx-charts - Gitter
@marjan-georgiev I'm still having issues with mentioned error. I updated dependencies in package.json with newer versions, can you check it?
Read more >
How to use ngx-charts in angular application ? - NgDevelop
ERROR in The target entry-point "@swimlane/ngx-charts" has missing dependencies: - @angular/cdk/portal. we need to add @angular/cdk using the following npm ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found