Skip to content

[2.5.7] Object destructuring within v-for gives "invalid v-for alias" error #7096

@sqal

Description

@sqal

Version

2.5.7

Reproduction link

https://jsfiddle.net/j9ahLed9/

Steps to reproduce

Check console logs

What is expected?

I expect Vue to compile the above template without error

What is actually happening?

I get an error:

- invalid v-for alias "{ id, label }" in expression: v-for="{ id, label } in items"

`

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions