Skip to content

v-for with :key is a requirement apparently not stated in docs #1161

Closed
@via-lars

Description

@via-lars

Context:

  • Vue3
  • Vue cli
  • "default project"
  • (eslint vue3-essential)
  • vue ui task serve

Issue:

any v-for without :key produces a compilation error "error Elements in iteration expect to have 'v-bind:key' directives" even for simple arrays such as ["string1", "string2"].

Note: these arrays themself are each a value of an Object property in my data.

Doc ref:

https://v3.vuejs.org/guide/list.html#maintaining-state

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions