When @nestjs/microservices is used with @nestjs/cqrs and app.listen(PORT) wasn't specified in main.ts, app throws errors for commands, queries and events.
Error example:
The query handler for the "cbad2186-947e-4420-819f-aad9259c54b6" query was not found! */
Is there an existing issue for this?
Current behavior
When
@nestjs/microservices
is used with@nestjs/cqrs
andapp.listen(PORT)
wasn't specified inmain.ts
, app throws errors for commands, queries and events.Error example:
The query handler for the "cbad2186-947e-4420-819f-aad9259c54b6" query was not found! */
Minimum reproduction code
https://github.com/vlbras/test-cqrs-microservices
Steps to reproduce
npm i
docker compose up
npm run start:dev
Expected behavior
Following configuration should not break CQRS module.
Package version
10.2.7
NestJS version
10.0.0
Node.js version
18.10.0
In which operating systems have you tested?
Other
No response