Runtime compiler is not loaded with Angular 8 and lazy module
this syntax worked for me:
{ path: 'dashboard', loadChildren: './dashboard/dashboard.module#DashboardModule'}
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.