vetur插件提示 [vue-language-server] Elements in iteration expect to have 'v-bind:key' directives

时间:2023-03-08 16:20:46

错误如下图所示:

vetur插件提示 [vue-language-server] Elements in iteration expect to have 'v-bind:key' directives

错误提示:

[vue-language-server] Elements in iteration expect to have 'v-bind:key' directives.
Renders the element or template block multiple times based on the source data

解决方法:

更改vetur配置

文件-》首选项-》设置-》用户设置(将"vetur.validation.template": 设置为false。)

vetur插件提示 [vue-language-server] Elements in iteration expect to have 'v-bind:key' directives