I've just updated all of my dependencies to the absolute latest version, but the error is still persisting here. It seems to be quite random, but there are steps I can take every time to get the error.
Note that I've always had
"experimentalDecorators": true,
"experimentalDecorators": true,
as part of my tsconfig - everything I've seen so far suggests adding that.
When I remove
"experimentalDecorators": true,
"experimentalDecorators": true,
, the same error appears across every file, not just the one file with the issue.
Notably, when I see the issue, I also have a bunch of other errors (pointing to the discord.js package inside nodemodules, something about ECMAScript 2015, and a whole bunch of errors across other files that aren't normally there.
Also, the project compiles fine, the decorator throwing the issue is working as expecred, but the whole project is going mental with errors that it's never reported before.
To reproduce this, I; - Copy an existing file - Rename the file/class name
Then, I see the error reported on the decorator, Then, several other errors appear
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.ts(1238)
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.ts(1238)