Const маршруты выделяются красным и выдает следующую ошибку:
Type "({path: string; component: Route [];} | {path: string;
component: Route []; canActivate: (typeof ..." can not be assigned for
type "Route []".
Type "{path: string; component: Route [];} | {path: string; component:
Route []; canActivate: (typeof ..." can not be assigned to the "Route"
type.
The "{path: string; component: Route [];}" type can not be assigned to
the "Route" type.
The property types of the "component" are incompatible.
The "Route []" type can not be assigned for type "type <any>".
The "apply" property is not present in the type "Route []".
и так далее ...
Как я могу это исправить?
import { Routes } from '@angular/router';
import { SignInRoutes } from '../layout/sign-in/index';
import { LayoutRoutes } from '../layout/index';
import { SignInComponent } from '../layout/sign-in/sign-in.component';
import { AuthGuard } from '../shared/guards/auth.guard';
export const routes: Routes = [
{ path: 'sign_in', component: SignInRoutes },
{ path: 'layout', component: LayoutRoutes, canActivate: [AuthGuard] },
{ path: '**', component: SignInComponent }
];