遇到的问题
VSCode工具报如下错误:
“Experimental support for decorators is a feature that is subject to change in a future release. Set the ‘experimentalDecorators’ option to remove this warning.”,
对装饰器的实验支持是一项功能,将来的版本中可能会对其进行更改。 设置“ experimentalDecorators”选项以删除此警告
解决方案
- VS-code工具栏 Code-preferences-settings,在usertab页里, 点最下面的TypeScript,点进去Edit in settings.json
- 在第一层级中加入 “javascript.implicitProjectConfig.experimentalDecorators”: true
保存后即可不再报错