I keep receiving this error when using @ApplyOptions.

TS1238: Unable to resolve signature of class decorator when called as an expression.   The runtime will invoke the decorator with 2 arguments, but the decorator expects 1.
TS1238: Unable to resolve signature of class decorator when called as an expression.   The runtime will invoke the decorator with 2 arguments, but the decorator expects 1.
This only happens on some commands, especially new commands that I create by generating using the CLI or copying other existing commands.
Solution:
It's alright, it was something with my tsconfig, but that was automatically added by SapphireCLI.
Jump to solution
4 Replies
kyra
kyra2y ago
Where are you placing the decorator? It can be placed only on classes, not methods or properties.
Solution
Noxxe
Noxxe2y ago
It's alright, it was something with my tsconfig, but that was automatically added by SapphireCLI.
Favna
Favna2y ago
the problem was adding experimentalDecorators to tsconfig CC @Noxxe
kyra
kyra2y ago
Oh ok

Did you find this page helpful?