Are you sure you have injected store to the component like this:
let store = new Vuex.Store({
state: {
name: 'Alicia Vikander',
age: 20,
dob: '20/08/1990'
},
mutations: {
updateName(state, name) => {
state.name = name
}
}
})
new Vue({
store,
el: '#app',
render: h => h(App)
});