We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f88232b commit 8a0118aCopy full SHA for 8a0118a
src/index.js
@@ -35,6 +35,11 @@ class Store {
35
// use a Vue instance to store the state tree
36
// suppress warnings just in case the user has added
37
// some funky global mixins
38
+ if (!Vue) {
39
+ throw new Error(
40
+ '[vuex] must call Vue.use(Vuex) before creating a store instance.'
41
+ )
42
+ }
43
const silent = Vue.config.silent
44
Vue.config.silent = true
45
this._vm = new Vue({
0 commit comments