[Vuejs]-Cannot resolve RouterLink tag

0👍

Just provide router object to new Vue({}).

const router = new VueRouter({
  routes: [
    { path: '/', component: () => import('./views/Home.vue') },
    // { path: '/login', component: Login },
    // { path: '/about', component: About }
  ]
})

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

Leave a comment