I\'m trying to lazy load Angular 2 modules with the router, and I\'m having this error:
error_handler.js:50 EXCEPTION: Uncaught (in promise): Error: C
You need to change your app-routing.module.ts in import { RouterModule } from '@angular/router';
import { RouterModule } from '@angular/router';
const routes = [ {path : '', loadChildren: () => import('./home/home.module').then(m => m.HomeModule) }, {path: 'devis', loadChildren: () => import('./forms/forms.module').then(m => m.FormsModule) } ];