How to configure Vue mapActions
vue-cli store my code like this: ...mapActions('some/nested/module',[ 'getCountry', 'getCurrency' ]), How to set up mapActions path in the Vue component? mapActions is used in a component's methods property. // my-component.vue import { mapActions } from 'vuex' export default { ... methods: { ...mapActions('namespaced/module', [ 'myAction', 'myOtherAction' ]) } } The namespace can determined by the module's filename. For example, given a file - moduleA.js - getters, mutations, actions would be namespaced as moduleA/someGetter , moduleA/someAction , moduleA/someMutation . ...mapActions('moduleA