Open SaidTayebi opened 7 years ago
can you paste your code here? I think this issue has nothing to do with vueditor.
I've got the same error.
...
import Vue from "vue"
import Vuex from "vuex"
import actions from "./actions"
import getters from "./getters"
import mutations from "./mutations"
import createPersistedState from "vuex-persistedstate"
import Vueditor from "vueditor"
Vue.use(Vuex)
const store = new Vuex.Store({
plugins: [createPersistedState()],
state: {
...
},
getters,
mutations,
actions,
})
const editorConfig = {
toolbar: [
'removeFormat', 'undo', '|', 'elements', 'fontName', 'fontSize', 'foreColor', 'backColor'
],
fontName: [
{ val: 'arial black' },
{ val: 'times new roman' },
{ val: 'Courier New' }
],
fontSize: ['12px', '14px', '16px', '18px', '0.8rem', '1.0rem', '1.2rem', '1.5rem', '2.0rem'],
uploadUrl: ''
};
Vue.use(Vueditor, editorConfig);
...
Uncaught Error: [vuex] must call Vue.use(Vuex) before creating a store instance.
If i comment out the vueditor part everything works.
+1
+1
I'm importing Vuex and calling
Vue.use(Vuex)
but still getting this error