项目改用了ts类的形式去编写遇到了个小问题吧
在类名或是Prop的地方提示这样的错误,看着真的很不爽
Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
我按着常规的做法
设置vscode和tsconfig.json都将 "experimentalDecorators" 设置为 true;
据说有人成功了(但好像都不是vue+ts),我还是一样报错啊...
有大牛对这个问题有想法的么?
我也碰到了这个问题,但我发现如果tsconfig.json所在目录是vscode的工作区根目录的话就不会报这个错。之前我的目录是这样的,root=>client=>tsconfig.json,直接用vscode打开client这个目录就不抱错了。