Skip to content
This repository was archived by the owner on May 2, 2021. It is now read-only.

Commit 540b858

Browse files
authored
Incorrect loadChildren format
`ng server` will work in this format, but when you try to use `ng build --prod` it fails. Quick fix to prefix with module. This will work for both
1 parent 6dee8fb commit 540b858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AngularUI/src/app/layouts/welcome-layout/welcome-layout-routing.routing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CommonAuthModule } from 'app/auth/common-auth.module';
44
export const WelcomeLayoutRouting: Routes = [
55
{
66
path: '',
7-
loadChildren: () => import('../../auth/common-auth.module').then(m => CommonAuthModule)
7+
loadChildren: () => import('../../auth/common-auth.module').then(m => m.CommonAuthModule)
88
}
99
];
1010

0 commit comments

Comments
 (0)