Currently experiencing an issue in VSC where all my typescript classes are triggering intellisense and showing a warning that says:
"[ts] Experimental support for is a feature that is subject to change in a future build. Set the 'experimentalDecorators' option to remove this warning."
This problem has been documented, with potential solutions found in these resources:
- https://github.com/Microsoft/TypeScript/issues/9335
- Experimental decorators warning in Visual Studio Code
Even though I have updated to a newer version of VSC today, none of the mentioned fixes seem to work.
Steps taken so far:
- Added the "typescript.tsdk": "../node_modules/typescript/lib" option in my .vscode settings
- Removed certain lines in tsconfig.json including lib and baseUrl, restarting VSC each time
- Tested different Typescript versions in package.json
- Restarted computer as a troubleshooting step
Below is my current tsconfig.json:
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"baseUrl": "src",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2016",
"dom"
]
}
}
VSC version: 2.3.2 and TS version set in package.json: "typescript": "~2.2.0".
Any suggestions on what might be missing here?