Hocam <router-view></router-view> kullanmaya çalıştığımda VueRouter is not a constructor hatası alıyorum
app.js kodum;
require('./bootstrap');
let Vue= require('vue');
let VueRouter = require('vue-router');
import Dashboard from './components/backend/Dashboard.vue'
import Units from './components/backend/settings/Units.vue'
Vue.use(VueRouter);
const router = new VueRouter({
mode: 'history',
routes: [
{
path: '/yonetim', component: Dashboard
},
{
path: '/yonetim/settings/units', component: Units,
},
],
});
export default routes;
const app = new Vue({
router
}).$mount('#app');
Nerde hata yapıyorum?