Skip to content

Error: Nest can't resolve dependencies of the DiscoveryService #437

@sk52

Description

@sk52

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions