`[Nest] 64803 - 10/08/2022, 10:37:13 AM ERROR [ExceptionHandler] Nest can't resolve dependencies ...
d
Copy code
[Nest] 64803  - 10/08/2022, 10:37:13 AM   ERROR [ExceptionHandler] Nest can't resolve dependencies of the AuthGuard (?). Please make sure that the argument Object at index [0] is available in the ProfileModule context.

Potential solutions:
- If Object is a provider, is it part of the current ProfileModule?
- If Object is exported from a separate @Module, is that module imported within ProfileModule?
  @Module({
    imports: [ /* the Module containing Object */ ]
  })
Receiving this error when using AuthGuard in nestjs. i followed exactly by the docs
r
hey @darkphoenix2704 @porcellus can help here. Please be patient since it's the weekend. He will get back as soon as possible.
d
ok
Appears to be an issue with documentation
Passing instance of AuthGuard seems to fix the issue
r
Thanks. I’ll let @porcellus have a look and update our docs if needed 🙂
4 Views