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

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

 解决方法:(如下图)

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

Vetur › Validation: Script  

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

 

posted @ 2022-03-02 15:37  zigood  阅读(4613)  评论(0编辑  收藏  举报