NestJS can't resolve dependecies of the LocalAuthGuard

Viewed 355

I'm following NestJS docs on the authentication topic, but for some reason the program doesn't work. I'm literally copying and pasting all the code, and doing all the CLI commands, but it keeps giving me this error:

Error: Nest can't resolve dependencies of the LocalAuthGuard. Please make sure that the "optios available in the current context.

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

AuthModuleOptions isn't anywhere in the code, so what could it be? I Honestly have no idea.

1 Answers
Related