nestjs commander option choices not working
In the view that the nestjs commander is simply lacking a sensible documentation, I’m wasting time trying to figure out why this does not work:
Dependency injection does not work with commander
The error I’m getting looks like this:
Nest can’t resolve dependencies of the AuthController (?, LoginService, LogoutService)
I am trying to implement authentication with nest js. When I run the code I get an error like this:
Undefined dependencies when implement circular dependencies when using @UseGuards in controller
I’m using NestJS for my app and using the @UseGuards()
. I also created 2 guards for my controller like: