问题:使用Vite2 + Vue3 + TypeScript + Pinia 搭建一套企业级的开发脚手架,第一步就遇到了校验问题,问题如图展示

vscode报错:'xxx' is declared but its value is never read.Vetur

 解决方法:(如下图)

点击设置  =》 搜索vetur  =》  然后

Vetur › Validation: Script  

Validate js/ts in <script> 这一项的去掉选中状态

vscode报错:'xxx' is declared but its value is never read.Vetur

 

相关文章: