-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.5.7] Object destructuring within v-for gives "invalid v-for alias" error #7096
Comments
|
Correct:
but works with index parameter -> https://jsfiddle.net/fok69xvz/1/ |
@sqal |
@yyx990803 There's still one case when it still does not work correctly -> array destructuring. Example using latest Vue 2.5.9 https://jsfiddle.net/bc1r9295/. Actually i found it reading vuejs/vue-loader#1062 And in 2.5.6 first two examples works fine, but the third one with index argument gives |
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"
`
The text was updated successfully, but these errors were encountered: