Closed binhleon closed 2 years ago
when @Inject(REQUEST) public request: Request to service, it make app.module.ts not execute inside class
@Inject(REQUEST) public request: Request
app.module.ts
https://stackblitz.com/edit/nestjs-typescript-starter-e7cq8e?file=src%2Ftest%2Ftest.module.ts,src%2Ftest%2Ftest.service.ts,src%2Fapp.module.ts
when npm start, it execute console.log at TestModule only
execute all console.log at TestService, AppModule
No response
^8.1.1
Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.
Is there an existing issue for this?
Current behavior
when
@Inject(REQUEST) public request: Request
to service, it makeapp.module.ts
not execute inside classMinimum 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