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.
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.