最近用vscode开发uniapp项目,vscode升级后有ts报错: 解决: 安装如下命令后重启vscode即可: yarn add @types/uni-app -D 这样报错不仅消失,写代码也会有uniapp的提示