I would like to use lazy loading but I can not understand why it does not work, it gives me error \"Cannot find module\". This is my environment: - Angular 5.2.1
Supposing this is AppModule that handles lazyloading and the features of your system are of the same tree as it is:
routes: Routes = [ { path: 'files-pannel', loadChildren: () => import('./module-folder/module-name.module').then(m => m.ModuleName) } ];