We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_ _ ____ _ ___ / \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | | / ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | | /_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___| |___/ Angular CLI: 1.7.0 Node: 8.9.4 OS: win32 x64 Angular: 5.2.5 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router @angular/cdk: 5.2.1 @angular/cli: 1.7.0 @angular/material-moment-adapter: 5.2.1 @angular/material: 5.2.1 @angular-devkit/build-optimizer: 0.3.1 @angular-devkit/core: 0.3.1 @angular-devkit/schematics: 0.3.1 @ngtools/json-schema: 1.2.0 @ngtools/webpack: 1.10.0 @schematics/angular: 0.3.1 @schematics/package-update: 0.3.1 typescript: 2.6.2 webpack: 3.11.0
export const routes: Routes = [ { path: 'pages', component: PageComponent, children: [ { path: 'session', loadChildren: "./session/session.module#SessionModule", }, ] }, ] export const PagesRoutingModule: ModuleWithProviders = RouterModule.forChild(routes);
TypeError: __webpack_require__.e is not a function
if I modify the loadChildren to
loadChildren: ()=> SessionModule
I get this error Cannot read property 'loadChildren' of undefined
Cannot read property 'loadChildren' of undefined
When do save on any file the project recompile and it's work but I can not do that when I am executing ng build
The text was updated successfully, but these errors were encountered:
Hello, I delete all additioanl comma ' , ' from my code
export const routes: Routes = [ { path: 'pages', component: PageComponent, children: [ { path: 'session', loadChildren: "./session/session.module#SessionModule" } ] } ]
and I add -aot to the serve commande it work but when I do ng build I have an empty page.
Sorry, something went wrong.
duplicate of #9825
There is a solution there.
Closing as answered by @michaeljota, thank you!
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
No branches or pull requests
Versions
Repro steps
TypeError: __webpack_require__.e is not a function
Observed behavior
if I modify the loadChildren to
loadChildren: ()=> SessionModule
I get this error
Cannot read property 'loadChildren' of undefined
When do save on any file the project recompile and it's work but I can not do that when I am executing ng build
The text was updated successfully, but these errors were encountered: