vue3+vite+ts+vscode环境搭建提示'XXX' is declared but its value is never read

有个组件在template中引入后script中还是报错'XXX' is declared but its value is never read,按以下布置解决
1.在禁用vetur


image.png

2.在设置里面搜索vetur,取消下图勾选


image.png

3.安装插件volar,如下图两个
image.png

4.在设置里面搜索volar,勾选下图选项
image.png

5.重启vscode

ps:还是不行的话升级vscode,我升级后就好了

你可能感兴趣的:(vue3+vite+ts+vscode环境搭建提示'XXX' is declared but its value is never read)