in my Laravel project I'm using Vue library and I'm trying to use vue router in my modules, but when I tried import vue router as usually (see code below) I got an error in my console: Uncaught TypeError: window.Vue.use is not a function
Any ideas how to solve this issue? I have created this module using webpack.
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import App from './App.vue'
const router = new VueRouter({
routes: [{
'path' : '/user/:id/'
}]
});
new Vue({
router,
el: '#play',
render: h => h(App)
});