Recently, I made an update to my NestJs project by upgrading the TypeScript version from 4.9.5 to 5.1.6. However, after this update, I encountered an issue with @InjectRedis not working as expected.
Here is a snippet of the code causing the problem:
@Injectable() export class MyService { constructor( @InjectRedis('REDIS') private readonly redisService: Redis, ) {} ... }
The error message that pops up says: "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'."
If anyone has any suggestions on how to troubleshoot and resolve this issue, please share your insights as I am currently stuck and unsure where to begin looking for a solution.