Closed unlight closed 6 years ago
Did you read the docs? https://docs.nestjs.com/microservices/basics
Did you read the docs? docs.nestjs.com/microservices/basics
Yes. And what?
I took code example from nest/examples/03-microservices/src/main.ts Apparantly, it's not correct at the moment or was broken.
Changed code to docs example and it works as expected.
Changed title of the issue.
@unlight I don't know what did you do, but for me it works. Checkout my recorded terminal session: https://asciinema.org/a/ndwZfLnX1leAHj1qKn94E0G0Y
Hi @unlight,
You created a hybrid application (https://docs.nestjs.com/faq/hybrid-application). Use createMicroservice()
instead (https://docs.nestjs.com/microservices/basics)
for me work fine
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I'm submitting a...
Current behavior
If I uncomment
// await app.listen(3000); // Is it required? Why?
-> no such errorExpected behavior
No errors.
Minimal reproduction of the problem with instructions
Result -> Error (see stack trace above)
Environment