Angular - NaNbut they point to different modules
How to fix Angular NaNbut they point to different modules
TD;LR Navigate back one level when you LoadChildren
Detail reading I had two submodules with the same path ./app/apps.module#AppsModule in two different modules.
|- Storage | |- storage.module.ts | |- apps | |- apps.module.ts |- Cuckoo | |- cuckoo.module.ts | |- apps | |- apps.module.ts In cuckoo.module.ts & storage.module.ts I had the following routes
const routes: Routes = [ { path: 'apps', loadChildren: "./apps/apps.module#AppsModule" }, ]; Due to a known issue in angular angular/angular-cli#10128, I couldn’t get this dynamically loaded using LoadChildren.
[Read More]