错误提示:Custom elements in iteration require 'v-bind:key' directives.eslint-plugin-vue
原因:使用了Vue中的vetur插件,在使用v-for时,key是必须的
解决:关闭VScodet对该插件的检查,在文件-首选项-设置里面输入vetur validation template 找到这个选项,去掉掉勾,再重启VScode。
相关文章
- 02-27错误提示:Custom elements in iteration require 'v-bind:key' directives.eslint-plugin-vue
- 02-27Vue报错:error Elements in iteration expect to have ‘v-bind:key‘ directives vue/require-v-for-key
- 02-27[vue/require-v-for-key] Elements in iteration expect to have 'v-bind:key' directives;清除错误提
- 02-27Vue报错Custom elements in iteration require 'v-bind:key' directives."错误解决