错误信息:Error:(21, 3) TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.
解决方案:在项目根目录新建 jsconfig.json 文件,写入一下内容,重启开发工具即可。
{
"compilerOptions": {
"experimentalDecorators": true
}
}