Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nest can't resolve dependencies of the DefaultAuthorizer #1520

Open
hanza93 opened this issue Feb 13, 2022 · 0 comments
Open

Nest can't resolve dependencies of the DefaultAuthorizer #1520

hanza93 opened this issue Feb 13, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@hanza93
Copy link

hanza93 commented Feb 13, 2022

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 hanza93 added the bug Something isn't working label Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant