美文网首页
使用vscode报错Elements in iteration

使用vscode报错Elements in iteration

作者: firststep | 来源:发表于2018-07-23 16:17 被阅读0次

    在使用vscode写vue的时候会出现这样一个错误:

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

    这是在使用插件vetur的问题,关闭了就行了。打开vscode-首选项-设置-工作区设置
    把"vetur.validation.template": true改成

    "vetur.validation.template": false
    

    保存一下就解决了。

    相关文章

      网友评论

          本文标题:使用vscode报错Elements in iteration

          本文链接:https://www.haomeiwen.com/subject/muejmftx.html