I am new to NUXT, need help. I am trying to setup store and using it in one component but getting these errors in console.
getting messages
'state' should be a method that returns an object in store/profiles.js.
[vuex] unknown action type: fetchProfiles [vuex] unknown getter: allProfiles
import { mapGetters, mapActions } from "vuex";
export default {
name: "Profiles",
methods: {
...mapActions(["fetchProfiles"])
},
computed: mapGetters(["allProfiles"]),
created() {
this.fetchProfiles();
}
};
Can anybody help me?