You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is caused by v-bind and v-on modifiers being appended in the same manner (originally to prevent duplicates causing errors from v-on chained modifiers). v-bind modifiers should always be culled from the node name, because we cannot bind one Vue prop twice (duplicates for v-bind are an error), and so that we aren't trying to find a prop with name "item.sync" rather than "item".
The text was updated successfully, but these errors were encountered:
Vetur: Restart VLS
Problem
If
vetur.experimental.templateInterpolationService: true
, and using a v-bind with .sync modifier, TypeScript reports:Property 'item' is missing in type '{ "item.sync": string; }' but required in type '{ item: string; }'
Reproducible Case
SomeComponent.vue:
I have a fix, and will make a PR shortly.
It is caused by v-bind and v-on modifiers being appended in the same manner (originally to prevent duplicates causing errors from v-on chained modifiers). v-bind modifiers should always be culled from the node name, because we cannot bind one Vue prop twice (duplicates for v-bind are an error), and so that we aren't trying to find a prop with name "item.sync" rather than "item".
The text was updated successfully, but these errors were encountered: