ASSERTION ERROR: Type passed in is not ComponentType, it does not have 'ɵcmp' property
This error may come due to two common mistakes
When you load module instead of component or vice versa then this error comes.
1. Loading Module instead of Component i.e.
{
path: 'login',
component: LoginModule // mistake
}
2. Loading Component instead of Module i.e.
{
path: 'login',
loadChildren: () => import('./login.module').then(m => m.LoginComponent) // mistake
}