I have successfully created .ngfactory files using ngc compiler and have also updated my main.ts with "platformBrowser().bootstrapModuleFactory(AppModuleNgFactory)".
app.routes.ts
const appRoutes: Routes = [
{ path: '', loadChildren: 'app/starter/starter.module#StarterModule' },
...
...
...
];
export const appRoutingProviders: any[] = [
];
export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes);
Now, when i serve my app using "ng build -prod && ng serve -prod", it hosts successfully. However, when i open it on my browser my console shows me this error "EXCEPTION: Uncaught (in promise): Error: Cannot find module 'app/starter/starter.module.ngfactory'."
And when i check my directory the file "does" exist yet its unable to find it. Has anyone face this problem? If yes, then how to tackle it? Thanks.
I'm using Angular-cli beta 14.