Runtime compiler is not loaded with Angular 8 and lazy module Runtime compiler is not loaded with Angular 8 and lazy module angular angular

Runtime compiler is not loaded with Angular 8 and lazy module


I think I've solved the issue, the problem was with this line:

loadChildren: () => import(`./dashboard/dashboard.module`)

I was using the backticks, replacing them with the normal single-quote '', it works fine.


this syntax worked for me:

{ path: 'dashboard', loadChildren: './dashboard/dashboard.module#DashboardModule'}


I had the same problem, and solved it by having my loadchildren in just one line, and not many (because of 120 caracts limit on my sonar !)I'm using Angular 10

Ko :

{    path: "my-big-page",    loadChildren: () => import("./pages/path-to-page/path-to-page/path-to-page/" +    "ppage.module").then(    m => m.MyPagePageModule),},

Ok :

{    path: "my-big-page",    loadChildren: () => import("./pages/path-to-page/path-to-page/path-to-page/ppage.module").then(m => m.MyPagePageModule),},

The string in the import must be a strict string !