What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-05 21:44:03
[Vue warn]: Error in mounted hook: "TypeError: this.$store is undefined"
//You are not importing Vuex and adding the store to Vue. //In your index file import your store: import Vue from 'vue' import Vuex from 'vuex' import store from './store' // change path if necessary //Then use it: Vue.use(Vuex) //And add it to Vue so ... Add solution
Best helpers
Michaelyus
+5
EBA2018
+5
Eric Lewis
+5
J. Tatum
+5
Erwaman
+5
Jp_
+5
Fauve
+5
Katy Forde
+5
Jcvamp
+5
Chris
+5
Xiaotian Pei
+5