In my tsconsig file I'm declaring the path for the folder
"@somellc/application-layout": [ "modules/somellc-frontend-application-layout" ]
and in the mentioned folder's index file exporting 2 modules
export {StoreLayoutModule} from './store/store-operations.module';
export {FrontRegisterModule} from './front-register/front-register.module';
in my main core module I'm referring to those exported modules after checking with authguard service if the user is logged in. Please Note that in my particular case the absolute path for used modules doesn't work for me so I need to use the path declared in the tsconfig file
export const routes: Routes = [
{
path: '',
canActivate: [AuthGuardService],
canActivateChild: [AuthGuardService],
canLoad: [AuthGuardService],
children: [
{
path: '',
loadChildren: '@somellc/application-layout#StoreLayoutModule',
},
{
path: 'front-register',
loadChildren: '@somellc/application-layout#FrontRegisterModule',
},
]
},
{
path: 'login',
component: LoginComponent
}
];
So in app build process I see no error but in the browser i got the error that one of the modules could not be found like this
core.js:1673 ERROR Error: Uncaught (in promise): Error: Cannot find 'StoreLayoutModule' in '@somellc/application-layout',
after removing one of the modules everything works, so can anyone help me with this problem?