{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/3019","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/3019/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/3019/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/3019/events","html_url":"https://github.com/angular/angular-cli/issues/3019","id":187366996,"number":3019,"title":"Windows ngtools/webpack AoT compilation hangs infinitely at 95% emitting","user":{"login":"mariussl","id":23261006,"avatar_url":"https://avatars.githubusercontent.com/u/23261006?v=3","gravatar_id":"","url":"https://api.github.com/users/mariussl","html_url":"https://github.com/mariussl","followers_url":"https://api.github.com/users/mariussl/followers","following_url":"https://api.github.com/users/mariussl/following{/other_user}","gists_url":"https://api.github.com/users/mariussl/gists{/gist_id}","starred_url":"https://api.github.com/users/mariussl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariussl/subscriptions","organizations_url":"https://api.github.com/users/mariussl/orgs","repos_url":"https://api.github.com/users/mariussl/repos","events_url":"https://api.github.com/users/mariussl/events{/privacy}","received_events_url":"https://api.github.com/users/mariussl/received_events","type":"User","site_admin":false},"labels":[{"id":343381718,"url":"https://api.github.com/repos/angular/angular-cli/labels/command:%20build","name":"command: build","color":"c7def8","default":false},{"id":458517305,"url":"https://api.github.com/repos/angular/angular-cli/labels/feature:%20aot","name":"feature: aot","color":"fef2c0","default":false},{"id":372202272,"url":"https://api.github.com/repos/angular/angular-cli/labels/priority:%202%20(required)","name":"priority: 2 (required)","color":"0052cc","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://avatars.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://avatars.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":{"url":"https://api.github.com/repos/angular/angular-cli/milestones/1","html_url":"https://github.com/angular/angular-cli/milestone/1","labels_url":"https://api.github.com/repos/angular/angular-cli/milestones/1/labels","id":1951974,"number":1,"title":"RC1","description":"","creator":{"login":"hansl","id":681969,"avatar_url":"https://avatars.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},"open_issues":30,"closed_issues":21,"state":"open","created_at":"2016-08-19T16:57:43Z","updated_at":"2016-12-22T19:18:17Z","due_on":"2016-09-24T07:00:00Z","closed_at":null},"comments":4,"created_at":"2016-11-04T15:43:03Z","updated_at":"2016-12-28T01:54:50Z","closed_at":null,"body":"### OS\r\nWindows 7 x64\r\n\r\n### Versions\r\n\r\nangular-cli: 1.0.0-beta.18\r\nnode: 5.10.1\r\nos: win32 x64\r\n\r\nand after upgrading\r\n\r\nangular-cli: 1.0.0-beta.18\r\nnode: 6.9.1\r\nos: win32 x64\r\n\r\n### Repro steps.\r\n[I set up a repo with a testcase and description here](https://github.com/mariussl/ngtools-webpack-winbug).\r\n\r\nIn short: On Windows7 webpack aot compilation hangs indefinitly on \"95% emitting\". I did some debugging and finally wound up in webpack/lib/Compiler.js Compiler.prototype.emitAssets line 288.. . It seems that the path for the source-map file is generated incorrectly by concatenating 2 absolute paths in line 310: this.outputFileSystem.join(outputPath, dir) . This leads to an endless loop of failed directory creations and hangs the compilation process.\r\n\r\nRemoving devtool from the webpack configuration solves the problem (albeit loosing the source-map). Further testing shows that replacing styleUrls with styles in app.component.ts also solves the problem (albeit loosing the external css file).\r\n\r\n\r\n### The log given by the failure.\r\n 66% building modules 468/474 modules 6 active ...node_modules\\rxjs\\util\\errorOb\r\n 66% building modules 468/475 modules 7 active ...ules\\rxjs\\util\\UnsubscriptionE\r\n 66% building modules 469/475 modules 6 active ...ules\\rxjs\\util\\UnsubscriptionE\r\n 66% building modules 470/475 modules 5 active ...ules\\rxjs\\util\\UnsubscriptionE\r\n 66% building modules 471/475 modules 4 active ...ules\\rxjs\\util\\UnsubscriptionE\r\n 66% building modules 472/475 modules 3 active ...ules\\rxjs\\util\\UnsubscriptionE\r\n 66% building modules 473/475 modules 2 active ...ules\\rxjs\\util\\UnsubscriptionE\r\n 66% building modules 474/475 modules 1 active ...ules\\rxjs\\util\\UnsubscriptionE\r\n 95% emitting\r\n\r\n\r\n### Mention any other details that might be useful.\r\n\r\nThe bug was reproducable on another Windows7 development system.\r\n\r\n### Update, 2016-12-16\r\n\r\nI upgraded to @ngtools/webpack 1.1.9 and the bug is still there. But I found a workaround by switching from css to less: In webpack.config.js: \r\n```javascript\r\n{ test: /\\.less$/, loaders: ['to-string-loader', 'css-loader', 'less-loader']},\r\n```\r\nAnd in app.component.ts:\r\n```javascript\r\nstyleUrls: ['./app.component.less']\r\n```\r\nWorks for me so far."},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/269412067","html_url":"https://github.com/angular/angular-cli/issues/3019#issuecomment-269412067","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/3019","id":269412067,"user":{"login":"kamarouski","id":8147833,"avatar_url":"https://avatars.githubusercontent.com/u/8147833?v=3","gravatar_id":"","url":"https://api.github.com/users/kamarouski","html_url":"https://github.com/kamarouski","followers_url":"https://api.github.com/users/kamarouski/followers","following_url":"https://api.github.com/users/kamarouski/following{/other_user}","gists_url":"https://api.github.com/users/kamarouski/gists{/gist_id}","starred_url":"https://api.github.com/users/kamarouski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamarouski/subscriptions","organizations_url":"https://api.github.com/users/kamarouski/orgs","repos_url":"https://api.github.com/users/kamarouski/repos","events_url":"https://api.github.com/users/kamarouski/events{/privacy}","received_events_url":"https://api.github.com/users/kamarouski/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T01:54:50Z","updated_at":"2016-12-28T01:54:50Z","body":"Have the same issue here with ngtools 1.2.1 & webpack 2.1.0-beta.25 \r\n\r\nThe process hangs on 95% when referencing SASS files for components. That's pretty much a show stopper for us to using AoT compilation :(\r\n"}}
{"actor":{"display_login":"kamarouski"}}