nestjs-query icon indicating copy to clipboard operation
nestjs-query copied to clipboard

Nest can't resolve dependencies of the DefaultAuthorizer

Open hanza93 opened this issue 3 years ago • 0 comments

Trying to test the getting started example

However, when I try to run the app it throws this error

Nest can't resolve dependencies of the DefaultAuthorizer (?, TodoItemDTOCustomAuthorizer). Please make sure that the argument ModuleRef at index [0] is available in the NestjsQueryGraphQLModule context.

Potential solutions:
- If ModuleRef is a provider, is it part of the current NestjsQueryGraphQLModule?
- If ModuleRef is exported from a separate @Module, is that module imported within NestjsQueryGraphQLModule?
  @Module({
    imports: [ /* the Module containing ModuleRef */ ]
  })

Note: for now I'm just following the starter example, no auth implemented.

hanza93 avatar Feb 13 '22 11:02 hanza93