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
kyra12mo ago
Where are you placing the decorator? It can be placed only on classes, not methods or properties.
Solution
Noxxe
Noxxe12mo ago
It's alright, it was something with my tsconfig, but that was automatically added by SapphireCLI.
Favna
Favna12mo ago
the problem was adding experimentalDecorators to tsconfig CC @Noxxe
kyra
kyra12mo ago
Oh ok
Want results from more Discord servers?
Add your server