Unable to resolve signature of parameter decorator when called as an expression

Hi,
all my @inject in the constructor have this note, although I can build the project without error, this red line appears to look not good
image


. I have seen some advice say add --target ES5 --experimentalDecorators, my project is based on blueprint, and its config already contains it
image

I do not know how to make this red line disappear. Does anyone know?

@wss The issue is due to TypeScript 5.0 and its more strict type checking in combination with Inversify 5.0. See also this PR in the Theia repo. For now, you can just instruct vscode to use the TypeScript version defined in the node_modules to solve this. After the next release (1.39.0), the updated inversify version will resolve the issue by itself.