vscode: [ts] Experimental support for decorators is a feature that is subject to change

Viewed 6555

I'm getting "[ts] Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."

I'm new to Angular and I don't how to solve it.

My tsconfig.json file :

    {  
    "compilerOptions":{  
      "allowSyntheticDefaultImports":true,
      "declaration":false,
      "emitDecoratorMetadata":true,
      "experimentalDecorators":true,
      "lib":[  
         "dom",
         "es2015"
      ],
      "module":"es2015",
      "moduleResolution":"node",
      "sourceMap":true,
      "target":"es5"
    },
    "include":[  
       "src/**/*.ts"
    ],
    "exclude":[  
       "node_modules"
    ],
    "compileOnSave":false,
    "atom":{  
       "rewriteTsconfig":false
     } 
   }

Print :

enter image description here

4 Answers

You can set

"javascript.implicitProjectConfig.experimentalDecorators": true

in your vscode setting.

Related