I\'m trying to perform a dispatch on \'logOutUser\' in vuex store, and i\'m getting the following error message in respone:
TypeError: Cannot read pro
That's because you probably didn't add store option to the root instance of Vue. By providing it you will be able to access store from all of root's child components. Therefore your root instance should look like this:
import store from './store'
const app = new Vue({
/* .. other properties .. */
store
})
Now you can freely use this.$store within your components.