-
-
Notifications
You must be signed in to change notification settings - Fork 442
Methods not found when using mapGetters #21
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
Comments
Thanks for your attention and report! I didn't use vuex, but I searched and tested projects using mapGetters from github, and it seems to work. Can you give me a reproduction project? |
I am using vue-class-component. So that probably has something to do with it. A simple component looks like this: <template>
<div>{{ getSomething(param) }}</div>
</template>
<script lang="ts">
import { Options, Vue } from 'vue-class-component';
import { mapGetters } from 'vuex';
@Options({
computed: {
...mapGetters(['getSomething']),
},
})
export default class SimpleComponent extends Vue {} In this case it would tell me that it can't find Hope this is clear enough. Thanks for making this amazing extension! |
I am not familiar with vue-class-component. I asked someone familiar with it. The problem is not from mapGetters, but because I'm not sure if this is the best solution, so I suggest you propose it here: https://github.com/vuejs/vue-class-component/issues |
Thank you for your answer! That does make sense. I will take a look at it! Edit: Thank you for your help! |
Thanks for the update! |
First I would like to say that I like this extension. It's working well!
In my code I'm using mapGetters to well.. map the getters from my Vuex store.
Unfortunately, this is not working with Volar. It says it can't find these methods.
A "solution" would be to not use the mapGetters of course, but to me that's not really an option.
Hope this can be fixed!
The text was updated successfully, but these errors were encountered: