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.

Why @nestjs/core requires a peerDependency of @nestjs/microservice?

See original GitHub issue

I’ve just thought that microservice is only required if you use microservices… Why core depends on microservice?

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
kamilmysliwieccommented, Nov 3, 2017

After latest release the codependency between packages is removed - it’s possible to use core without both microservices and websockets package installed. The dependencies have been eliminated without any breaking changes 🙂

1reaction
wbhobcommented, Oct 23, 2017

@saskodh this could be causing some of the issues: https://github.com/nestjs/nest/blob/dc7869b38f3cdc293028e4cca69623be8446efc3/src/core/nest-application.ts#L36-L41

By having this method on the Application instantiator, it has no choice but to depend. My alternative would be to put those methods in the respective packages.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I resolve peer dependency conflicts with Nx, Angular ...
I've tried adding the --legacy-peer-deps option to npm install and this works (4 high vulnerabilities) but when I try to run npx nx...
Read more >
@nestjs/microservices - codelib.club
PeerDependencies · Dependencies · DevDependencies · Repository · Other packages · Footer · Have a great thursday.
Read more >
@opentelemetry/instrumentation-nestjs-core - npm
Start using @opentelemetry/instrumentation-nestjs-core in your project by running `npm i @opentelemetry/instrumentation-nestjs-core`.
Read more >
What are peer dependencies in a Node module? - Flavio Copes
When a dependency is listed in a package as a peerDependency, it is not automatically installed. Instead, the code that includes the package...
Read more >
Peer Dependencies | Node.js
What we need is a way of expressing these "dependencies" between ... One piece of advice: peer dependency requirements, unlike those for ...
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