I've been using NestJS for some time now, but this error is new to me.
[Nest] 23628 - 22/01/2024, 09:22:18 ERROR [ExceptionHandler] Nest can't resolve dependencies of the DiscoveryService (?). Please make sure that the argument ModulesContainer at index [0] is available in the DiscoveryModule context.
Potential solutions:
- Is DiscoveryModule a valid NestJS module?
- If ModulesContainer is a provider, is it part of the current DiscoveryModule?
- If ModulesContainer is exported from a separate @Module, is that module imported within DiscoveryModule?
@Module({
imports: [ /* the Module containing ModulesContainer */ ]
})