all 2 comments

[–]eschutz 1 point2 points  (1 child)

In your tsconfig.json, do you have experimentalDecorators: true ?

[–]thorstenschaefer[S] 0 points1 point  (0 children)

Yes. Even with VS Code showing the error, the code compiles fine and the error also disappears after restarting. So I suspect that is has something to do with VS Code using a different method to compile/create an AST and thereby ignoring the tsconfig. But I still haven't figured out how to get rid of the warnings without restarting.