I\'m trying to implement lazy routing into my app.
I have a very big project and when it was at router-deprecated I used AsyncRoute, but now it was removed.
Long story short: I met this error when didn't insert (forgot) child routes to the feature module:
landings.routing.ts
export const LandingsRoutes = RouterModule.forChild(routes);
landings.module.ts
imports: [
CommonModule,
// LandingsRoutes // <-- this I forgot and receive error Callstack exceeded
]
If you don't export the routing module as a module - you need to export the only router with routes. Only forgotten things cause errors