1
我刚用了anglar4 cli来创建一个新项目,并开始出现以下错误。如何摆脱angular1项目中ellipse的experimentalDecorators警告
Experimental support for decorators is a feature that is subject to change in a future release. Set
the 'experimentalDecorators' option to remove this warning.
对于每个注释。
我之前没有使用ng cli,那么我没有看到任何类似的警告。
检查我tsconfig,
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"baseUrl": "src",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"module": "commonjs",
"noImplicitAny": false,
"suppressImplicitAnyIndexErrors": true,
"typeRoots": [
"node_modules/@types"
],
"exclude":
[
"node_modules",
"**/*.spec.ts"
],
"lib": [
"es2016",
"dom"
]
}
}
没有什么特别的。
如何在eclipse中为angular4项目删除警告?这是非常烦人的虚假警报。
我在eclipse中使用了typecript插件。
感谢