diff --git a/npm/ng-packs/packages/core/src/lib/handlers/routes.handler.ts b/npm/ng-packs/packages/core/src/lib/handlers/routes.handler.ts index 10f95fa0c4..637f7b4165 100644 --- a/npm/ng-packs/packages/core/src/lib/handlers/routes.handler.ts +++ b/npm/ng-packs/packages/core/src/lib/handlers/routes.handler.ts @@ -12,7 +12,7 @@ export class RoutesHandler { } addRoutes() { - this.router?.config.forEach(({ path = '', data }) => { + this.router?.config?.forEach(({ path = '', data }) => { if (!data?.routes) return; if (Array.isArray(data.routes)) {