been receiveing error like this in my Vuex Store
TypeError: Cannot read property 'get' of undefined
I already have added a plugin for the vue-resource
This is my code that is receiving that error
async getAllStudents({commit}) {
await Vue.$http.get(`/api/students`)
.then((res) => {
if (res.status === 200) {
commit('setAllStudents', res.data)
}
}).catch(function(error) {
console.log(error);
});
},