Has anyone here experienced this issue with Nestjs failing to inject some providers automatically?
This works:
@Injectable()
export class CognitoTriggerService {
constructor(@Inject(UserService) private readonly userService: UserService) {}
// ...
}
But without @Inject, userService is undefined (nest doesn't throw any errors saying it failed to resolve)
@Injectable()
export class CognitoTriggerService {
constructor(private readonly userService: UserService) {}
// ...
}
This is strangely only happening with this one injection. I'm injecting UserService into other providers and controllers without using @Inject