nestjs / nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
https://nestjs.com
MIT License
66.92k stars 7.55k forks source link

@Inject(REQUEST) make app.module.ts no execute #9793

Closed binhleon closed 2 years ago

binhleon commented 2 years ago

Is there an existing issue for this?

Current behavior

when @Inject(REQUEST) public request: Request to service, it make app.module.ts not execute inside class

Minimum reproduction code

https://stackblitz.com/edit/nestjs-typescript-starter-e7cq8e?file=src%2Ftest%2Ftest.module.ts,src%2Ftest%2Ftest.service.ts,src%2Fapp.module.ts

Steps to reproduce

when npm start, it execute console.log at TestModule only

Expected behavior

execute all console.log at TestService, AppModule

Package

Other package

No response

NestJS version

^8.1.1

Packages versions

Node.js version

No response

In which operating systems have you tested?

Other

No response

kamilmysliwiec commented 2 years ago

Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.