Using the discovery module with NestJS v8.2.3 gives the following error:
Error: Nest can't resolve dependencies of the DiscoveryService (?, MetadataScanner). Please make sure that the argument ModulesContainer at index [0] is available in the DiscoveryModule context.
Adding ModulesContainer as a provider in discovery.module.ts fixes this error.
Using the discovery module with NestJS v8.2.3 gives the following error:
Adding
ModulesContaineras a provider indiscovery.module.tsfixes this error.