Why @nestjs/core requires a peerDependency of @nestjs/microservice?
See original GitHub issueI’ve just thought that microservice is only required if you use microservices… Why core
depends on microservice
?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:8 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After latest release the codependency between packages is removed - it’s possible to use
core
without bothmicroservices
andwebsockets
package installed. The dependencies have been eliminated without any breaking changes 🙂@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.