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
[x ] I have tried restarting VS Code or running Vetur: Restart VLS
Info
Platform: Win
Vetur version: 0.31.3
VS Code version: 1.52.1
Problem
I try to import a mutation with the method ...mapMutations. If this is the only method in my vue file can use it without any warning. I have this in my script section:
methods: {
...mapMutations(['increment'])
}
and this in my template section:
<button @click="increment">X</button>
But if I add another method which is independent from my initial method:
This problem is too complicated for I can understand it fully but what seems strange to me is that if there is only ...mapMutations we don't get any warning: even if we type the wrong name, vs code tells increment0 is a mutation method. But if we add another method with no link we get the warning.
In my opinion the warning should occur either in both cases or none of them...
Vetur: Restart VLS
Info
Problem
I try to import a mutation with the method
...mapMutations
. If this is the only method in my vue file can use it without any warning. I have this in my script section:and this in my template section:
But if I add another method which is independent from my initial method:
I get the following error in my template:
The vue app is still working, I only get the error in vscode.
Reproducible Case
I did a minimal example starting from vue hello world:
https://github.com/ntraut/vue-hello-world
The text was updated successfully, but these errors were encountered: