I have been working on an Angular2-Typescript application and created the project using angular-cli with the command:
ng new myApp
However, I am facing a warning issue when creating a new component with the @Component tag.
I have tried to resolve this problem by referring to this post:
Experimental decorators warning in Visual Studio Code
Unfortunately, the solution provided in the post did not work for me.
Below is my tsconfig.json configuration:
{
"compilerOptions": {
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es6", "dom"],
"mapRoot": "./",
"module": "es6",
"moduleResolution": "node",
"outDir": "../dist/out-tsc",
"sourceMap": true,
"target": "es6",
"typeRoots": [
"../node_modules/@types"
]
}
}
The Typescript version being used is: "typescript": "2.0.2"