{ path: '', canActivate: [GuardGuard], canDeactivate: [GuardGuard], loadChildren: () => import('@local/app/pages/home/home.module').then(m => m.HomeModule) .catch(() => import('@shared/app/pages/home/home.module').then(m => m.HomeModule) ) } when it's not able to find @local/app/pages/home/home.module it will instead use @shared/app/pages/home/home.module but the code above is not supposed to be written this way, I'm just showing you my logic. Continue reading...