I encounter an error, VueJS router supports all paths even those where one or more components have not been linked
const routes: RouteConfig[] = [
{ path: '/', name: 'Home', component: Home },
{ path: '/home', redirect: '/' },
{ path: '/reset-password' },
{ path: '/create', name: 'Create', component: CreateInnovation },
{ path: '/dashboard', name: 'stage-table', component: Dashboard }
];
export const createRouter = () => {
const router = new VueRouter({
mode: 'history',
// @ts-ignore
base: __dirname,
routes
})
return router
}
Thanks in advance for your help, Jérémy