{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/11889","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/11889/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/11889/comments","events_url":"https://api.github.com/repos/angular/angular/issues/11889/events","html_url":"https://github.com/angular/angular/issues/11889","id":179033449,"number":11889,"title":"AOT compiler doesn't generate *.ngfactory.ts files for 3rd party components in node_modules","user":{"login":"mattlewis92","id":6425649,"avatar_url":"https://avatars.githubusercontent.com/u/6425649?v=3","gravatar_id":"","url":"https://api.github.com/users/mattlewis92","html_url":"https://github.com/mattlewis92","followers_url":"https://api.github.com/users/mattlewis92/followers","following_url":"https://api.github.com/users/mattlewis92/following{/other_user}","gists_url":"https://api.github.com/users/mattlewis92/gists{/gist_id}","starred_url":"https://api.github.com/users/mattlewis92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattlewis92/subscriptions","organizations_url":"https://api.github.com/users/mattlewis92/orgs","repos_url":"https://api.github.com/users/mattlewis92/repos","events_url":"https://api.github.com/users/mattlewis92/events{/privacy}","received_events_url":"https://api.github.com/users/mattlewis92/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular/labels/comp:%20core/compiler","name":"comp: core/compiler","color":"c7def8"},{"url":"https://api.github.com/repos/angular/angular/labels/hotlist:%20error%20messages","name":"hotlist: error messages","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-24T14:44:29Z","updated_at":"2016-09-24T19:07:47Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior** \r\n<!-- Describe how the bug manifests. -->\r\nWhen running ngc the compiler doesn't codegen components inside node_modules when the component isn't exported (`export * from './my.component';`) from the module. There are no errors emitted and all the *.metadata.json files for the libraries exist.\r\n\r\n**Expected behavior**\r\n<!-- Describe what the behavior would be without the bug. -->\r\nFor ngc to successfully codegen all 3rd party components without having to export the components publicly\r\n\r\n**Reproduction of the problem**\r\nCheckout this repo: https://github.com/mattlewis92/angular2-tv-tracker\r\n```\r\nnpm install\r\nnpm run ngc\r\n```\r\n\r\nYou will then see that only one ngfactory.ts module file is emitted for each 3rd party module inside of the `aot/module_modules` folder, but none of the other components are codegen'd. As you can see from the screenshot, the reference to the `'./directives/calendarTooltip.directive.ngfactory'` file is created but the file itself doesn't exist.\r\n\r\n<img width=\"1375\" alt=\"screen shot 2016-09-24 at 15 35 24\" src=\"https://cloud.githubusercontent.com/assets/6425649/18809156/102a9440-826d-11e6-817b-1c71bb6ffaf4.png\">\r\n\r\nIf you need any more info let me know!\r\n\r\n**Please tell us about your environment:**\r\n<!-- Operating system, IDE, package manager, HTTP server, ... -->\r\nOSX\r\n\r\n* **Angular version:** 2.0.X \r\n<!-- Check whether this is still an issue in the most recent Angular version -->\r\n2.0.1\r\n\r\n* **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] \r\n<!-- All browsers where this could be reproduced -->\r\nN/A \r\n\r\n* **Language:** [all | TypeScript X.X | ES6/7 | ES5]\r\nTypescript \r\n\r\n* **Node (for AoT issues):** `node --version` =   \r\nv5.11.0"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/249381949","html_url":"https://github.com/angular/angular/issues/11889#issuecomment-249381949","issue_url":"https://api.github.com/repos/angular/angular/issues/11889","id":249381949,"user":{"login":"mattlewis92","id":6425649,"avatar_url":"https://avatars.githubusercontent.com/u/6425649?v=3","gravatar_id":"","url":"https://api.github.com/users/mattlewis92","html_url":"https://github.com/mattlewis92","followers_url":"https://api.github.com/users/mattlewis92/followers","following_url":"https://api.github.com/users/mattlewis92/following{/other_user}","gists_url":"https://api.github.com/users/mattlewis92/gists{/gist_id}","starred_url":"https://api.github.com/users/mattlewis92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattlewis92/subscriptions","organizations_url":"https://api.github.com/users/mattlewis92/orgs","repos_url":"https://api.github.com/users/mattlewis92/repos","events_url":"https://api.github.com/users/mattlewis92/events{/privacy}","received_events_url":"https://api.github.com/users/mattlewis92/received_events","type":"User","site_admin":false},"created_at":"2016-09-24T19:07:47Z","updated_at":"2016-09-24T19:07:47Z","body":"Will get that done tomorrow, thanks!"}}
{"actor":{"display_login":"mattlewis92"}}