{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/2900","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/2900/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/2900/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/2900/events","html_url":"https://github.com/angular/angular-cli/issues/2900","id":185392656,"number":2900,"title":"AOT: Compilation sometimes fails on serve","user":{"login":"SeerUK","id":2083033,"avatar_url":"https://avatars.githubusercontent.com/u/2083033?v=3","gravatar_id":"","url":"https://api.github.com/users/SeerUK","html_url":"https://github.com/SeerUK","followers_url":"https://api.github.com/users/SeerUK/followers","following_url":"https://api.github.com/users/SeerUK/following{/other_user}","gists_url":"https://api.github.com/users/SeerUK/gists{/gist_id}","starred_url":"https://api.github.com/users/SeerUK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeerUK/subscriptions","organizations_url":"https://api.github.com/users/SeerUK/orgs","repos_url":"https://api.github.com/users/SeerUK/repos","events_url":"https://api.github.com/users/SeerUK/events{/privacy}","received_events_url":"https://api.github.com/users/SeerUK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-26T13:25:45Z","updated_at":"2016-10-29T12:42:28Z","closed_at":null,"body":"### OS?\r\n> Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)\r\n\r\nMac OSX 10.11.6 (El Capitan)\r\n\r\n### Versions.\r\n> Please run `ng --version`. If there's nothing outputted, please run in a Terminal: `node --version` and paste the result here:\r\n\r\n```\r\n$ ng --version\r\nangular-cli: 1.0.0-beta.18\r\nnode: 6.9.1\r\nos: darwin x64\r\n```\r\n\r\n### Repro steps.\r\n> Was this an app that wasn't created using the CLI? What change did you do on your code? etc.\r\n\r\nThe app was created with the CLI tool. I created a completely fresh, brand-new project, ran `$ ng serve --aot`, and then made a (any) change to a file. At this point, the browser reloads, and _sometimes_ the error shown below is given.\r\n\r\n### The log given by the failure.\r\n> Normally this include a stack trace and some more information.\r\n\r\nNote, this doesn't happen every time. It seems like it's only sometimes, randomly. Perhaps a race condition?\r\n\r\n```\r\nstyle_sanitizer.js:95 Uncaught Error: Module build failed: Error: ENOENT: no such file or directory, open '/Users/seer/git/github.com/SeerUK/angular2-cli-issue-test/src/app/app.module.ngfactory.ts'(…)(anonymous function) @ style_sanitizer.js:95__webpack_require__ @ bootstrap 03ed31e…:52(anonymous function) @ main.ts:8__webpack_require__ @ bootstrap 03ed31e…:52(anonymous function) @ zone.js:1428__webpack_require__ @ bootstrap 03ed31e…:52webpackJsonpCallback @ bootstrap 03ed31e…:23(anonymous function) @ main.bundle.js:1\r\nclient:38 [WDS] Errors while compiling.\r\nclient:80 ./src/app/app.module.ngfactory.ts\r\nModule build failed: Error: ENOENT: no such file or directory, open '/Users/seer/git/github.com/SeerUK/angular2-cli-issue-test/src/app/app.module.ngfactory.ts'\r\n    at Error (native)\r\n @ ./src/main.ts 4:0-64\r\n @ multi main\r\n```\r\n\r\n### Mention any other details that might be useful.\r\n\r\nN/A currently."},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/257089583","html_url":"https://github.com/angular/angular-cli/issues/2900#issuecomment-257089583","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/2900","id":257089583,"user":{"login":"alexbyk","id":1048770,"avatar_url":"https://avatars.githubusercontent.com/u/1048770?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbyk","html_url":"https://github.com/alexbyk","followers_url":"https://api.github.com/users/alexbyk/followers","following_url":"https://api.github.com/users/alexbyk/following{/other_user}","gists_url":"https://api.github.com/users/alexbyk/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbyk/subscriptions","organizations_url":"https://api.github.com/users/alexbyk/orgs","repos_url":"https://api.github.com/users/alexbyk/repos","events_url":"https://api.github.com/users/alexbyk/events{/privacy}","received_events_url":"https://api.github.com/users/alexbyk/received_events","type":"User","site_admin":false},"created_at":"2016-10-29T12:42:28Z","updated_at":"2016-10-29T12:42:28Z","body":"Can confirm the same error happens when some file is changed, than goes away when I save a file a second/third time.\r\nUncaught Error: Module build failed: Error: ENOENT: no such file or directory, open '/home/foo/projects/bar/src/app/app.module.ngfactory.ts'\r\n\r\nVery annoying bug."}}
{"actor":{"display_login":"alexbyk"}}