I have a login path like this
{ path: 'login', loadChildren: 'src/app/auth/login/login.module#LoginPageModule' },
If i insert tabs into my app ,and define paths
path: '',
component: TabsPage,
children: [
{ path: 'settings', loadChildren:'./settings/settings.module#SettingsPageModule' },]
When i try to run again my app i have errors like this
"ERROR in Could not resolve module /app/auth/login/login.module relative to src/app/app-routing.module.ts"
then when i specify the route with "src" login path and tabs path
{ path: 'login', loadChildren: 'src/app/pages/auth/login/login.module#LoginPageModule' },
I've seen many tutorials but no one had this problem. I solved it this way but I don't know if it's the right one
Try this snippet in your routing-module:
app-routing-module.ts
{ path: 'login', loadChildren: './pages/auth/login/login.module#LoginPageModule' }