I have a AuthGuard which is importing several services like shown.
constructor(
private readonly jwtService: JwtService,
private readonly reflector: Reflector,
private readonly errorsService: ErrorsService,
private readonly userService: UserService,
) {}
Everything here works as expected when I am not injecting userService. When I try to inject UserService none of them gets injected and logging them shows undefined. The UserModule is Global and is imported into AppModule. Incase constructor order matters, the UserModule is imported after all the other services mentioned here. Not sure what is wrong since I assumed that a Global module's exported Serivce should be available everywhere for import.
The Auth Guard is not a part of any Module. It is directly imported into AppModule's providers
