[System Information]
OS Version : Linux 5.0
NodeJS Version : v16.14.2
NPM Version : 7.17.0
[Nest CLI]
Nest CLI Version : 9.0.0
[Nest Platform Information]
platform-express version : 9.0.0
schematics version : 9.0.0
testing version : 9.0.0
common version : 9.0.0
core version : 9.0.0
cli version : 9.0.0
Node.js version
No response
In which operating systems have you tested?
[ ] macOS
[ ] Windows
[ ] Linux
Other
As workaround, I created a small service containing the config.
Is there an existing issue for this?
Current behavior
I have a really simple use case that should work (in my opinion) but that doesn't.
I have a Dynamic Module that declares a "Config Token"
And a Service that depends on that token.
It seems the service is not able to resolve that dependency.
Minimum reproduction code
https://stackblitz.com/edit/nestjs-typescript-starter-ha7qrt?file=src/app.module.ts
Steps to reproduce
npm i npm start
Expected behavior
Dependency should be accessible in the dependency tree
Package
Other package
No response
NestJS version
No response
Packages versions
[System Information] OS Version : Linux 5.0 NodeJS Version : v16.14.2 NPM Version : 7.17.0
[Nest CLI] Nest CLI Version : 9.0.0
[Nest Platform Information] platform-express version : 9.0.0 schematics version : 9.0.0 testing version : 9.0.0 common version : 9.0.0 core version : 9.0.0 cli version : 9.0.0
Node.js version
No response
In which operating systems have you tested?
Other
As workaround, I created a small service containing the config.