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.

Should the dependencies be peer dependencies?

See original GitHub issue

Should the dependencies be peer dependencies? It seems like these should be provided by the runtime environonment:

  "dependencies": {
    "@angular/compiler": "^5.0.0",
    "@angular/common": "^5.0.0",
    "@angular/core": "^5.0.0",
    "core-js": "^2.4.1",
    "rxjs": "^5.5.0",
    "zone.js": "^0.8.12"
  },

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
crisbetocommented, May 17, 2018

By the looks of it I won’t have time for that build cleanup, but I’ve released 2.0.0 which updates to Angular 6 and switches the dependencies to peerDependencies.

1reaction
crisbetocommented, May 9, 2018

I’ve also got some other things that need cleaning up that I’m planning on doing altogether.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Peer Dependencies in JavaScript
Peer dependencies really come into play when you're developing code that will be used by others, such as plugins and packages.
Read more >
Why use peer dependencies in npm for plugins?
When should you use peer dependencies? ... Common scenarios are plugins for larger frameworks. Think of things like Gulp, Grunt, Babel, Mocha, etc....
Read more >
Why use peer dependencies?
Peer dependencies are a useful pattern to avoid duplicated libraries ending up on the client, but it's likely not worth it for most...
Read more >
Peer Dependencies | Node.js
One piece of advice: peer dependency requirements, unlike those for regular dependencies, should be lenient. You should not lock your peer ...
Read more >
NPM: Dependencies vs Peer Dependencies | by Tapaswi
To conclude, dependencies are the package references that are used by your library without which it cannot work and to be installed along...
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