[vue-language-server] ‘v-for‘ directives require ‘v-bind:key‘ directives嵌套for循环报错,解决办法

益阳平
2023-12-01

在用vscode编写vue代码时,因为安装的有vetur插件,所以当代码中有v-for语法时,会提示

[vue-language-server] ‘v-for’ directives require ‘v-bind:key’ directives.

解决方法:在配置文件添加一句:

"vetur.validation.template": false
 类似资料: