Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
当我们使用ts装饰器的时候遇到如上错误,则我们需要在ts配置文件中写入
{
"compilerOptions": {
"experimentalDecorators": true,
}
}
最后重启编译器就能解决问题
还没有解决可以找到编辑器里面的同名设置勾选,重启即可
- 如果真的还没解决的话 最后一种办法了将项目添加到工作区