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.

Angular 6 & peerDependencies

See original GitHub issue

Hi,

I’m already using Angular 6 and when installing ng2-google-charts via npm I get the following warnings:

npm WARN ng2-google-charts@3.4.0 requires a peer of @angular/common@^5.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN ng2-google-charts@3.4.0 requires a peer of @angular/compiler@^5.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN ng2-google-charts@3.4.0 requires a peer of @angular/core@^5.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN ng2-google-charts@3.4.0 requires a peer of rxjs@^5.5.6 but none is installed. You must install peer dependencies yourself.
npm WARN ng2-google-charts@3.4.0 requires a peer of typescript@~2.5.3 but none is installed. You must install peer dependencies yourself.

Are these really necessary and used by ng2-google-charts? Can I ignore them and even better can they be removed from the package.json so the warnings no longer popup?

I’ve been testing the charts a little bit and I get no errors.

Regards,

Jochen

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Aaltujcommented, Oct 17, 2018

Any updates on this? Is there a plan to update to Angular 6?

2reactions
Myrmexcommented, May 28, 2018

Me too: I could not update Angular using ng update because of these dependencies. Yet, I succeeded to update by uninstalling this package, updating, and reinstalling. Once reinstalled, I ignored the warnings and it seems to work fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm - When upgrading Angular 5 to 6, I get incompatible peer ...
Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=2.7.2 <2.8", would install "2.6.2") ...
Read more >
npm Peer Dependencies - JavaScript inDepth
Peer Dependencies are used to specify that our package is compatible with a specific version of an npm package. Good examples are Angular...
Read more >
Workspace npm dependencies - Angular
The packages listed in the devDependencies section of package.json help you develop the application on your local machine. You don't deploy them with...
Read more >
Incompatible peer dependencies - Angular 6 for ... - O'Reilly
I will go through some of incompatible peer dependency errors that I received during my upgrade process and the different strategies to resolve...
Read more >
Update peer dependencies to enable angular 14 #404 - GitHub
Angular complains about fullcalendar dependencies when upgrading to Angular 14. However, when using the --force attribute everything still works fine. This is ...
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