Uncaught TypeError: router.map is not a function vue.js
The function .map is deprecated in Latest Version of Vue.js Use the below instead of map –
<pre>
new VueRouter({
routes: [
{ path: ‘/foo’, component: LoginBlock }
],
});
</pre>
For router the above example will work perfectly.
Advertisements