Closed cybergitt closed 10 months ago
I have the same problem and i couldn't find anything to fix it.
If you set "strictNullChecks": false
in your tsconfig.json
, it'll fix your problem. I couldn't find a better solution
Anyone found a better solution for this?
None. The library needs to be patched.
So instead of turning off strictNullChecks
- there is a slightly less dirty option of casting to any:
@((InjectRedis as any)())
So instead of turning off
strictNullChecks
- there is a slightly less dirty option of casting to any:
@((InjectRedis as any)())
This is what we ended up doing. So ugly :(
If you set
"strictNullChecks": false
in yourtsconfig.json
, it'll fix your problem. I couldn't find a better solution
yeah, for unstrict project this solution is good, thanks dude.
This is where we're leaving this one? Doesn't seem to be properly resolved IMHO 🤷♂️
I'm getting the error when I'm decorating the class in nestjs service. I'm using typescript 4.7.4
The Typescript is compiling without errors, and I'm getting this problem only in VS Code.
for your reference this is my tsconfig:
Service class:
I tried reinstalling typescript and removing the node module, but the problem still remains.