joa*_*oab 8 javascript typescript visual-studio-code angular
我得到了"[ts]对装饰器的实验性支持是一个在将来版本中可能会发生变化的功能.设置'experimentalDecorators'选项以删除此警告."
我是Angular的新手,我不知道如何解决它.
我的tsconfig.json文件:
{
"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
}
}
Run Code Online (Sandbox Code Playgroud)
}
打印:
你可以设置
"javascript.implicitProjectConfig.experimentalDecorators": true
Run Code Online (Sandbox Code Playgroud)
在你的 vscode 设置中。
| 归档时间: |
|
| 查看次数: |
2351 次 |
| 最近记录: |