You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I need to load some modules in the following way but its giving me an error "Dynamic import is only supported when '--module' flag is 'commonjs' or 'esNext'." can you check and share a working sample ?
{
path: '',
component: WrapperComponent,
canActivateChild: [MetaGuard],
children: [{
path: 'home', loadChildren: () = {
//I need to write some logic here to decide which module it should load, for now i am simply returning the below.
return import('./home/home.module').then(mod => mod.HomeModule)
}
},
The text was updated successfully, but these errors were encountered:
return import('./home/home.module').then(mod => mod.HomeModule)
this syntactic only for ivy or JIT
use: loadChildren: './mock-server-browser/mock-server-browser.module#MockServerBrowserModule',
Hi,
I need to load some modules in the following way but its giving me an error "Dynamic import is only supported when '--module' flag is 'commonjs' or 'esNext'." can you check and share a working sample ?
{
path: '',
component: WrapperComponent,
canActivateChild: [MetaGuard],
children: [{
path: 'home', loadChildren: () = {
//I need to write some logic here to decide which module it should load, for now i am simply returning the below.
return import('./home/home.module').then(mod => mod.HomeModule)
}
The text was updated successfully, but these errors were encountered: