Open ntraut opened 3 years ago
It's a type limit in Vuex.
Ref: https://github.com/vuejs/vuex/issues/1417 https://github.com/vuejs/vuex/pull/1121
Temporarily open issue to confirm.
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