{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/9775","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/9775/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/9775/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/9775/events","html_url":"https://github.com/angular/angular-cli/issues/9775","id":300176700,"number":9775,"title":"$$_lazy_route_resource lazy recursive","user":{"login":"radonirinamaminiaina","id":4496927,"avatar_url":"https://avatars3.githubusercontent.com/u/4496927?v=4","gravatar_id":"","url":"https://api.github.com/users/radonirinamaminiaina","html_url":"https://github.com/radonirinamaminiaina","followers_url":"https://api.github.com/users/radonirinamaminiaina/followers","following_url":"https://api.github.com/users/radonirinamaminiaina/following{/other_user}","gists_url":"https://api.github.com/users/radonirinamaminiaina/gists{/gist_id}","starred_url":"https://api.github.com/users/radonirinamaminiaina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radonirinamaminiaina/subscriptions","organizations_url":"https://api.github.com/users/radonirinamaminiaina/orgs","repos_url":"https://api.github.com/users/radonirinamaminiaina/repos","events_url":"https://api.github.com/users/radonirinamaminiaina/events{/privacy}","received_events_url":"https://api.github.com/users/radonirinamaminiaina/received_events","type":"User","site_admin":false},"labels":[{"id":385595233,"url":"https://api.github.com/repos/angular/angular-cli/labels/need:%20repro%20steps","name":"need: repro steps","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-02-26T10:07:50Z","updated_at":"2018-03-08T21:45:27Z","closed_at":null,"author_association":"NONE","body":"**Note: for support questions, please use one of these channels:** [Chat: AngularClass.slack](http://angularclass.com/member-join/) or [Twitter: @AngularClass](https://twitter.com/AngularClass)\r\n\r\n* **I'm submitting a ...**\r\n[x] bug report\r\n[ ] feature request\r\n[ ] question about the decisions made in the repository\r\n\r\n* **What is the current behavior?**\r\nI got `TypeError: __webpack_require__.e is not a function` after trying to make a lazy load module.\r\n\r\n\r\n* **My Code**\r\n\r\n**_app-routing.module.ts_**\r\n```\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { RouterModule, Routes } from '@angular/router';\r\n\r\nconst routes: Routes = [\r\n  { path: 'listes', loadChildren: 'app/component/list/list.module#ListModule'}\r\n];\r\n\r\n@NgModule({\r\n  imports: [\r\n    RouterModule.forRoot(routes)\r\n  ],\r\n  declarations: [],\r\n  exports: [ RouterModule ]\r\n})\r\nexport class AppRoutingModule { }\r\n```\r\n**_list-routing.module.ts_**\r\n\r\n```\r\nimport { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\n\r\nimport { ListComponent } from './list.component';\r\n\r\nconst routes: Routes = [] = [\r\n  { path: '', component: ListComponent }\r\n];\r\n\r\n@NgModule({\r\n  imports: [RouterModule.forChild(routes)],\r\n  exports: [RouterModule]\r\n})\r\nexport class ListRoutingModule { }\r\n```\r\n**_list.module.ts_**\r\n\r\n```\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { ListRoutingModule } from './list-routing.module';\r\n\r\nimport { ListComponent } from './list.component';\r\n\r\n@NgModule({\r\n  imports: [\r\n    CommonModule,\r\n    ListRoutingModule\r\n  ],\r\n  declarations: [ ListComponent ]\r\n})\r\nexport class ListModule { }\r\n```\r\n**app.module.ts**\r\n\r\n```\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { NgModule } from '@angular/core';\r\n\r\nimport { AppComponent } from './app.component';\r\nimport { HeaderComponent } from './component/header/header.component';\r\nimport { FooterComponent } from './component/footer/footer.component';\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { DetailModule } from './component/detail/detail.module';\r\nimport { HomeComponent } from './component/home/home.component';\r\n\r\n\r\n@NgModule({\r\n  declarations: [\r\n    AppComponent,\r\n    HeaderComponent,\r\n    FooterComponent,\r\n    HomeComponent\r\n  ],\r\n  imports: [\r\n    BrowserModule,\r\n    AppRoutingModule\r\n  ],\r\n  providers: [],\r\n  bootstrap: [AppComponent]\r\n})\r\nexport class AppModule {}\r\n\r\n```\r\n\r\n* **Please tell us about your environment:**\r\n\r\n- Angular version: 5.2.0\r\n- Browser: all\r\n- Angular cli:\r\n```\r\n@angular/cli: 1.7.0\r\n@angular-devkit/build-optimizer: 0.3.1\r\n@angular-devkit/core: 0.3.1\r\n@angular-devkit/schematics: 0.3.1\r\n@ngtools/json-schema: 1.2.0\r\n@ngtools/webpack: 1.10.0\r\n@schematics/angular: 0.3.1\r\n@schematics/package-update: 0.3.1\r\ntypescript: 2.5.3\r\nwebpack: 3.11.0\r\n```\r\n\r\n\r\n\r\n* **Other information** \r\n![image](https://user-images.githubusercontent.com/4496927/36592562-512d708a-18a7-11e8-84ba-09ec43c61867.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/371635106","html_url":"https://github.com/angular/angular-cli/issues/9775#issuecomment-371635106","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/9775","id":371635106,"user":{"login":"coderroggie","id":1376024,"avatar_url":"https://avatars1.githubusercontent.com/u/1376024?v=4","gravatar_id":"","url":"https://api.github.com/users/coderroggie","html_url":"https://github.com/coderroggie","followers_url":"https://api.github.com/users/coderroggie/followers","following_url":"https://api.github.com/users/coderroggie/following{/other_user}","gists_url":"https://api.github.com/users/coderroggie/gists{/gist_id}","starred_url":"https://api.github.com/users/coderroggie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderroggie/subscriptions","organizations_url":"https://api.github.com/users/coderroggie/orgs","repos_url":"https://api.github.com/users/coderroggie/repos","events_url":"https://api.github.com/users/coderroggie/events{/privacy}","received_events_url":"https://api.github.com/users/coderroggie/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T21:45:27Z","updated_at":"2018-03-08T21:45:27Z","author_association":"NONE","body":"@radonirinamaminiaina ran into your error in step 1 again in a different project and found that https://stackoverflow.com/a/47605359/266426 fixed it.  Remove node_modules and package-lock.json and run npm install.  Good luck!"}}
{"actor":{"display_login":"coderroggie"}}