Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 937
Joab Santos Avatar asked Aug 09 '17 01:08

Joab Santos


1 Answers

You've opened the editor on the src folder. For vscode's language service to find your tsconfig, you need to open the editor on the true root of the project holding your config.

Opened on root folder: enter image description here

Opened on src folder: enter image description here

like image 55
Meirion Hughes Avatar answered Oct 13 '22 00:10

Meirion Hughes