{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/5266","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/5266/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/5266/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/5266/events","html_url":"https://github.com/angular/angular-cli/issues/5266","id":212362075,"number":5266,"title":"live reload breaks webpack when using typings (in lazy loaded module)","user":{"login":"emreavsar","id":943766,"avatar_url":"https://avatars2.githubusercontent.com/u/943766?v=3","gravatar_id":"","url":"https://api.github.com/users/emreavsar","html_url":"https://github.com/emreavsar","followers_url":"https://api.github.com/users/emreavsar/followers","following_url":"https://api.github.com/users/emreavsar/following{/other_user}","gists_url":"https://api.github.com/users/emreavsar/gists{/gist_id}","starred_url":"https://api.github.com/users/emreavsar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emreavsar/subscriptions","organizations_url":"https://api.github.com/users/emreavsar/orgs","repos_url":"https://api.github.com/users/emreavsar/repos","events_url":"https://api.github.com/users/emreavsar/events{/privacy}","received_events_url":"https://api.github.com/users/emreavsar/received_events","type":"User","site_admin":false},"labels":[{"id":531674830,"url":"https://api.github.com/repos/angular/angular-cli/labels/freq1:%20low","name":"freq1: low","color":"fbca04","default":false},{"id":505657131,"url":"https://api.github.com/repos/angular/angular-cli/labels/package4:%20@angular-sdk/webpack","name":"package4: @angular-sdk/webpack","color":"e99695","default":false},{"id":531675405,"url":"https://api.github.com/repos/angular/angular-cli/labels/severity3:%20broken","name":"severity3: broken","color":"5319e7","default":false},{"id":220593710,"url":"https://api.github.com/repos/angular/angular-cli/labels/type:%20bug","name":"type: bug","color":"EEEEEE","default":false}],"state":"open","locked":false,"assignee":{"login":"hansl","id":681969,"avatar_url":"https://avatars2.githubusercontent.com/u/681969?v=3","gravatar_id":"","url":"https://api.github.com/users/hansl","html_url":"https://github.com/hansl","followers_url":"https://api.github.com/users/hansl/followers","following_url":"https://api.github.com/users/hansl/following{/other_user}","gists_url":"https://api.github.com/users/hansl/gists{/gist_id}","starred_url":"https://api.github.com/users/hansl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansl/subscriptions","organizations_url":"https://api.github.com/users/hansl/orgs","repos_url":"https://api.github.com/users/hansl/repos","events_url":"https://api.github.com/users/hansl/events{/privacy}","received_events_url":"https://api.github.com/users/hansl/received_events","type":"User","site_admin":false},"assignees":[{"login":"hansl","id":681969,"avatar_url":"https://avatars2.githubusercontent.com/u/681969?v=3","gravatar_id":"","url":"https://api.github.com/users/hansl","html_url":"https://github.com/hansl","followers_url":"https://api.github.com/users/hansl/followers","following_url":"https://api.github.com/users/hansl/following{/other_user}","gists_url":"https://api.github.com/users/hansl/gists{/gist_id}","starred_url":"https://api.github.com/users/hansl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansl/subscriptions","organizations_url":"https://api.github.com/users/hansl/orgs","repos_url":"https://api.github.com/users/hansl/repos","events_url":"https://api.github.com/users/hansl/events{/privacy}","received_events_url":"https://api.github.com/users/hansl/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-03-07T08:27:14Z","updated_at":"2017-04-13T09:17:51Z","closed_at":null,"body":"> Please provide us with the following information:\r\n> ---------------------------------------------------------------\r\n\r\n### OS?\r\nEl Capitan\r\n\r\n### Versions.\r\n@angular/cli: 1.0.0-rc.0\r\n\r\n### Repro steps.\r\nAdd typings to the project as follows:\r\npackage.json:\r\n```\r\n{\r\n  \"scripts\": {\r\n    ...\r\n    \"install\": \"typings install\"\r\n  }\r\n...\r\n  dependencies: {\r\n...\r\n    \"typings\": \"^2.1.0\",\r\n...\r\n  }\r\n}\r\n```\r\n\r\ntypings.json:\r\n```\r\n{\r\n  \"globalDependencies\": {\r\n    \"typings\": \"github:t4deon/FHIR-STU3-TS-Typings/typings.d.ts#e36b4cf4bb07734b97ea8d14893f7747fd990438\"\r\n  }\r\n}\r\n```\r\n\r\nsrc/tsconfig.app.json:\r\n```\r\n...\r\n{\r\n  \"files\": [\r\n    \"../typings/index.d.ts\"\r\n  ]\r\n}\r\n```\r\n\r\nThen (regardless wether the typings are used in the project or not):\r\n\r\n 1. start the app with `ng serve` -> 👍  works\r\n2. go into a lazy loaded module's code and just drop some new lines somewhere, so that livereload kicks in\r\n3. face the error 👎 \r\n4. Do the same change in code inside a **non lazy loaded module** does not reproduce this problem.\r\n\r\n### The log given by the failure.\r\n```\r\nFailed to compile.\r\n./src/app/home/signup/personal-gln-form/personal-gln-form.component.ts\r\nModule build failed: Error\r\n    at WebpackCompilerHost.populateWebpackResolver (/Users/emre/projects/eviprev-it/eviprev-dossier-frontend/node_modules/@ngtools/webpack/src/compiler_host.js:135:51)\r\n    at _donePromise.Promise.resolve.then.then.then.then (/Users/emre/projects/eviprev-it/eviprev-dossier-frontend/node_modules/@ngtools/webpack/src/plugin.js:327:32)\r\n    at process._tickCallback (internal/process/next_tick.js:103:7)\r\n @ ./src/app/home/signup/signup.module.ts 17:0-91\r\n @ ./src async\r\n @ ./~/@angular/core/src/linker/system_js_ng_module_factory_loader.js\r\n @ ./~/@angular/core/src/linker.js\r\n @ ./~/@angular/core/src/core.js\r\n @ ./~/@angular/core/index.js\r\n @ ./src/main.ts\r\n @ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts\r\n```\r\n\r\n### Mention any other details that might be useful.\r\n\r\n1. I cannot use the @types npm repo, since the typings are not registered there, so I need to install by `typings install`\r\n2. Initial issue and discussions were made here: https://github.com/angular/angular-cli/issues/4326"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/293837124","html_url":"https://github.com/angular/angular-cli/issues/5266#issuecomment-293837124","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/5266","id":293837124,"user":{"login":"Darshan-popin","id":20539351,"avatar_url":"https://avatars0.githubusercontent.com/u/20539351?v=3","gravatar_id":"","url":"https://api.github.com/users/Darshan-popin","html_url":"https://github.com/Darshan-popin","followers_url":"https://api.github.com/users/Darshan-popin/followers","following_url":"https://api.github.com/users/Darshan-popin/following{/other_user}","gists_url":"https://api.github.com/users/Darshan-popin/gists{/gist_id}","starred_url":"https://api.github.com/users/Darshan-popin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Darshan-popin/subscriptions","organizations_url":"https://api.github.com/users/Darshan-popin/orgs","repos_url":"https://api.github.com/users/Darshan-popin/repos","events_url":"https://api.github.com/users/Darshan-popin/events{/privacy}","received_events_url":"https://api.github.com/users/Darshan-popin/received_events","type":"User","site_admin":false},"created_at":"2017-04-13T09:17:51Z","updated_at":"2017-04-13T09:17:51Z","body":"Same here i'm using node v6.10.0 , @emreavsar  any workarounds you have found ?? "}}
{"actor":{"display_login":"Darshan-popin"}}