Open adriano-di-giovanni opened 3 years ago
@adriano-di-giovanni Hey, make sure your VSCode uses workspace typescript.
Per the error, that would be because your tsconfig.json
's target
setting isn't ES5
or above.
That might be because you used the templates, which don't have a target
setting since #466 as it is overwritten by TSDX. target
's default when unset is still ES3
per the above link.
You can set it to ESNext
to reflect TSDX's setting, but keep in mind that is not actually used by TSDX. That might be a new error from the VSCode TS integration as I haven't seen it before
Current Behavior
Can't use accessors in a project created with the latest version of tsdx. It seems to be an editor integration issue because the code compiles.
You should be able to reproduce the issue easily by creating a class such as
Your environment
Here is the VS Code info