profile
viewpoint

Ask questionsNot working with vue 2

I try to set up with vue 2, like this:

`

 import Vue from 'vue'
 import './plugins/axios'
 import App from './App.vue'

 const Store = require('secure-webstore')

 const store = new Store('user_data', 'lachiquichiqui89')

 store.init().then(() => {
   // store is ready
 })

Vue.prototype.$store = store

new Vue({
 router,
 render: h => h(App)
}).$mount('#app')`

But gives me this error Uncaught TypeError: Store is not a constructor

AKASHAorg/secure-webstore

Answer questions Master-Y0da

working now! thanks @deiu

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List