Have a lazily loaded module LazyModule and a service LazyService inside it that itself wants to use LazyModuleLoader to load further modules.
Running an application like this fails with an error:
Error: Nest can't resolve dependencies of the LazyService (?). Please make sure that the argument LazyModuleLoader at index [0] is available in the LazyModule context.
Is there an existing issue for this?
Current behavior
Have a lazily loaded module
LazyModule
and a serviceLazyService
inside it that itself wants to useLazyModuleLoader
to load further modules.Running an application like this fails with an error:
Minimum reproduction code
https://stackblitz.com/edit/nestjs-typescript-starter-1eknf8?file=src/app.module.ts
Steps to reproduce
Expected behavior
LazyModuleLoader
should be usable in services of modules that were lazy loaded.Package
Other package
No response
NestJS version
^9.0.0
Packages versions
Node.js version
No response
In which operating systems have you tested?
Other
Potentially the same issue as in https://github.com/nestjs/nest/issues/9622.