{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/1585","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/1585/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/1585/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/1585/events","html_url":"https://github.com/angular/angular-cli/issues/1585","id":169781478,"number":1585,"title":"(webpack) Cannot import with barrels ","user":{"login":"efriandika","id":6255825,"avatar_url":"https://avatars.githubusercontent.com/u/6255825?v=3","gravatar_id":"","url":"https://api.github.com/users/efriandika","html_url":"https://github.com/efriandika","followers_url":"https://api.github.com/users/efriandika/followers","following_url":"https://api.github.com/users/efriandika/following{/other_user}","gists_url":"https://api.github.com/users/efriandika/gists{/gist_id}","starred_url":"https://api.github.com/users/efriandika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efriandika/subscriptions","organizations_url":"https://api.github.com/users/efriandika/orgs","repos_url":"https://api.github.com/users/efriandika/repos","events_url":"https://api.github.com/users/efriandika/events{/privacy}","received_events_url":"https://api.github.com/users/efriandika/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular-cli/labels/feature:%20webpack","name":"feature: webpack","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-07T05:42:46Z","updated_at":"2016-08-08T01:58:57Z","closed_at":"2016-08-08T01:57:58Z","body":"Please look at this code: \r\n```\r\nimport {NavbarComponent, FooterComponent} from './shared/index';\r\n\r\n@Component({\r\n    selector: 'app',\r\n    templateUrl: 'app.component.html',\r\n    directives: [NavbarComponent, FooterComponent]\r\n})\r\nexport class AppComponent {}\r\n```\r\nIt will get an error: `EXCEPTION: Unexpected directive value 'undefined' on the View of component AppComponent'`\r\n\r\nWhen I dont use barrels:\r\n```\r\nimport {NavbarComponent} from './shared/navbar/navbar.component';\r\nimport {FooterComponent} from './shared/footer/footer.component';\r\n```\r\n\r\nIt run properly.\r\n\r\nSo, what should I do ? Is this a bugs of angular cli ?\r\n\r\n\r\n> Version: angular-cli@webpack\r\n> OS: MacOSX El Capitan\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/238125800","html_url":"https://github.com/angular/angular-cli/issues/1585#issuecomment-238125800","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/1585","id":238125800,"user":{"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},"created_at":"2016-08-08T01:58:57Z","updated_at":"2016-08-08T01:58:57Z","body":"Sorry if I was missing some information. Barrels are being replaced with `NgModule`s so where you have to specify directives for your components, you'll simply put them in your module and they'll be available to all components."}}
{"actor":{"display_login":"hansl"}}