I've been having issues trying to compile TypeScript to JavaScript when using decorators. The error I get is this:
app.ts:11:7 - error TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.
11 class Person { ~~~~~~
I've been searching here in StackOverflow for ways to fix it, and also on other websites, and nothing seemed to work for me. Here's what I've already tried:
- I already have
"experimentalDecorators": true
in my tsconfig.json file - I added
"javascript.implicitProjectConfig.experimentalDecorators": true
in my settings file - I tried disabling all my VSCode extensions
- I tried restarting VSCode multiple times and opening the project folders in multiple ways
I keep getting this same error anyways. My TypeScript version is 4.1.2
.
from Errors when using decorators in Visual Studio Code
No comments:
Post a Comment