I have updated my typescript version from 4.9.5 to 5.1.6 in my NestJs project and @InjectRedis no longer works
This is the code:
@Injectable() export class MyService { constructor( @InjectRedis('REDIS') private readonly redisService: Redis, ) {} ... }
The error I receive is: "Unable to resolve signature of parameter decorator when called as an expression.
Argument of type 'undefined' is not assignable to parameter of type 'string | symbol'."
Maybe someone has an idea on how to fix it?
I really have no idea where to start to fix it.
That limitation was fixed on
@nestjs/commonv9.3.0Make sure you have you're using the latest version (or at least the latest of NestJS v9) of all your
@nestjs/*packages