Vetur: vue-language-server now reports missing v-bind:key directive on v-for

Created on 23 Jun 2017  路  2Comments  路  Source: vuejs/vetur

  • Platform: macOS
  • Vetur version: 0.8.3
  • VSCode version: 1.13.1

Problem

vue-language-server now reports missing v-bind:key directive on v-for

Reproducible Case

Use this simple template:

<template v-for="field in schema.fields">
    <component :is="getComponent(field)" :key="field.id"></component>
</template>

The error message is reported on template.
Regards.

diagnostics upstream

Most helpful comment

This is already known.
Please see https://github.com/vuejs/eslint-plugin-vue/pull/45.

For now you can disable vetur's template lint.

@octref you need place template in an <template> to reproduce.

All 2 comments

This is already known.
Please see https://github.com/vuejs/eslint-plugin-vue/pull/45.

For now you can disable vetur's template lint.

@octref you need place template in an <template> to reproduce.

Was this page helpful?
0 / 5 - 0 ratings