qzcsgs opened a new issue #1826: Vuex, web, must call Vue.use(Vuex) before 
creating a store instance
URL: https://github.com/apache/incubator-weex/issues/1826
 
 
   ## web end Vuex
   ```js
   /* global Vue */
   
   /* weex initialized here, please do not move this line */
   import router from './router'
   import store from '@/store/index'
   import App from '@/index'
   
   // Vuex is auto installed on the web
   if (WXEnvironment.platform !== 'Web') {
     Vue.use(store)
   }
   
   /* eslint-disable no-new */
   new Vue(Vue.util.extend({el: '#root', router, store}, App))
   ```
   error message `[vuex] must call Vue.use(Vuex) before creating a store 
instance`
   
   ```json
   {
       "vue": "^2.5.11",
       "vue-router": "^3.0.1",
       "vuex": "^3.0.1",
       "weex-vue-render": "^1.0.17"
   }
   ```
   `macOS v10.13.4`
   `weex v1.3.11`
   `weexpack : v1.2.7`
   `weex-builder : v0.4.0`
   `weex-previewer : v1.5.1`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to