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
I've just configured Volar + Sublimetext, and I think I've got it set up correctly for my project (Vue 2.7-based, not ts). With this kind of template code:
<templatev-for="(val, key) in obj">
<divv-if="key ==='thing'" :key="key">{{ val }}</div>
<spanv-else :key="key">{{ val }}</span>
</template>
I'm seeing this error:
Since it's Vue 2, I can't put the key on the template element. And since I'm reading from an object, I'm certain the keys will be unique. But I guess because it sees the same variable in the div and span, it's triggering an error, which then pops up the ST console panel every time I save.
Any advice on how to configure for this? Or where to post if it's not a Volar issue?
The text was updated successfully, but these errors were encountered:
I've just configured Volar + Sublimetext, and I think I've got it set up correctly for my project (Vue 2.7-based, not ts). With this kind of template code:
I'm seeing this error:
Since it's Vue 2, I can't put the key on the template element. And since I'm reading from an object, I'm certain the keys will be unique. But I guess because it sees the same variable in the
div
andspan
, it's triggering an error, which then pops up the ST console panel every time I save.Any advice on how to configure for this? Or where to post if it's not a Volar issue?
The text was updated successfully, but these errors were encountered: