[英]experimental decorator warning in angular2?
I am new to Angular2 我是Angular2的新手
When I renaming some file like app.states.ts to app.routes.ts then my editor is showing warning on one of my Componet. 当我将某个文件(如app.states.ts)重命名为app.routes.ts时,我的编辑器会在我的某个Componet上显示警告。 Result coming perfect, I did n't understood that why I am getting this warning.
结果完美,我不明白为什么我得到这个警告。
I am using WEBSTROM IDe 我正在使用WEBSTROM IDe
Please help me to remove this warning 请帮我删除此警告
Add this option to your tsconfig.json
: 将此选项添加到
tsconfig.json
:
{
"compilerOptions": {
...
"experimentalDecorators": true,
...
}
}
I have the similar problem and I solved it, when I find 2 files "package.json" in project folder and in folder "UI". 我有类似的问题,我解决了它,当我在项目文件夹和文件夹“UI”中找到2个文件“package.json”。 I removed file from "UI" folder and everything went properly.
我从“UI”文件夹中删除了文件,一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.