I stumbled upon this bug in my codebase and trying to see if anyone can fix it.
following is my listings/actions.js
export const fetchFeaturedListings = ({ commit }) => {
this.$axios.get("/featured").then(response => {
console.log(response.data.data);
commit("listings/setFeaturedListings", response.data.data);
});
};
I am constantly getting the following error.
Cannot read property '$axios' of undefined
I've searched everywhere, and still not able to find an answer. Hope someone can help.