{"action":"opened","issue":{"url":"https://api.github.com/repos/Quramy/angular2-load-children-loader/issues/4","repository_url":"https://api.github.com/repos/Quramy/angular2-load-children-loader","labels_url":"https://api.github.com/repos/Quramy/angular2-load-children-loader/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Quramy/angular2-load-children-loader/issues/4/comments","events_url":"https://api.github.com/repos/Quramy/angular2-load-children-loader/issues/4/events","html_url":"https://github.com/Quramy/angular2-load-children-loader/issues/4","id":191693039,"number":4,"title":"webpack error","user":{"login":"daniele-zurico","id":3193095,"avatar_url":"https://avatars.githubusercontent.com/u/3193095?v=3","gravatar_id":"","url":"https://api.github.com/users/daniele-zurico","html_url":"https://github.com/daniele-zurico","followers_url":"https://api.github.com/users/daniele-zurico/followers","following_url":"https://api.github.com/users/daniele-zurico/following{/other_user}","gists_url":"https://api.github.com/users/daniele-zurico/gists{/gist_id}","starred_url":"https://api.github.com/users/daniele-zurico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniele-zurico/subscriptions","organizations_url":"https://api.github.com/users/daniele-zurico/orgs","repos_url":"https://api.github.com/users/daniele-zurico/repos","events_url":"https://api.github.com/users/daniele-zurico/events{/privacy}","received_events_url":"https://api.github.com/users/daniele-zurico/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-25T12:33:00Z","updated_at":"2016-11-25T12:33:00Z","closed_at":null,"body":"Hi I'm trying to use your loader but I receive in the console this kind of error:\r\n`VM6476:48 EXCEPTION: Uncaught (in promise): TypeError: __webpack_require__(...) is not a function`\r\n\r\nmy webpack.config is:\r\n```\r\nrules: [\r\n      // Support for .ts files.\r\n      {\r\n        test: /\\.ts$/,\r\n        loaders: ['awesome-typescript-loader?'inlineSourceMap=true&sourceMap=false', 'angular2-load-children-loader', 'angular2-template-loader', '@angularclass/hmr-loader'],\r\n        exclude: [isTest ? /\\.(e2e)\\.ts$/ : /\\.(spec|e2e)\\.ts$/, /node_modules\\/(?!(ng2-.+))/]\r\n      },\r\n```\r\n\r\nand I use in that way:\r\n```\r\n imports: [\r\n        BrowserModule,\r\n        HttpModule,\r\n        FormsModule,\r\n        RouterModule.forRoot([\r\n            {path: '', loadChildren: './home/home.module#HomeModule'},\r\n            {path: 'about', loadChildren: './about/about.module#AboutModule'}\r\n        ])],\r\n```\r\nwhat I did wrong?"}}
{"actor":{"display_login":"daniele-zurico"}}