{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/18170","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/18170/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/18170/comments","events_url":"https://api.github.com/repos/angular/angular/issues/18170/events","html_url":"https://github.com/angular/angular/issues/18170","id":243398801,"number":18170,"title":"ERROR in Illegal state: symbol without members expected when using AOT in 4.3.0","user":{"login":"aleris","id":1011245,"avatar_url":"https://avatars1.githubusercontent.com/u/1011245?v=4","gravatar_id":"","url":"https://api.github.com/users/aleris","html_url":"https://github.com/aleris","followers_url":"https://api.github.com/users/aleris/followers","following_url":"https://api.github.com/users/aleris/following{/other_user}","gists_url":"https://api.github.com/users/aleris/gists{/gist_id}","starred_url":"https://api.github.com/users/aleris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleris/subscriptions","organizations_url":"https://api.github.com/users/aleris/orgs","repos_url":"https://api.github.com/users/aleris/repos","events_url":"https://api.github.com/users/aleris/events{/privacy}","received_events_url":"https://api.github.com/users/aleris/received_events","type":"User","site_admin":false},"labels":[{"id":375501288,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20core%20&%20compiler","name":"comp: core & compiler","color":"c7def8","default":false},{"id":375497160,"url":"https://api.github.com/repos/angular/angular/labels/freq2:%20medium","name":"freq2: medium","color":"fbca04","default":false},{"id":375498262,"url":"https://api.github.com/repos/angular/angular/labels/severity5:%20regression","name":"severity5: regression","color":"0052cc","default":false},{"id":130606843,"url":"https://api.github.com/repos/angular/angular/labels/type:%20bug","name":"type: bug","color":"EEEEEE","default":false}],"state":"open","locked":false,"assignee":{"login":"chuckjaz","id":372013,"avatar_url":"https://avatars1.githubusercontent.com/u/372013?v=4","gravatar_id":"","url":"https://api.github.com/users/chuckjaz","html_url":"https://github.com/chuckjaz","followers_url":"https://api.github.com/users/chuckjaz/followers","following_url":"https://api.github.com/users/chuckjaz/following{/other_user}","gists_url":"https://api.github.com/users/chuckjaz/gists{/gist_id}","starred_url":"https://api.github.com/users/chuckjaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuckjaz/subscriptions","organizations_url":"https://api.github.com/users/chuckjaz/orgs","repos_url":"https://api.github.com/users/chuckjaz/repos","events_url":"https://api.github.com/users/chuckjaz/events{/privacy}","received_events_url":"https://api.github.com/users/chuckjaz/received_events","type":"User","site_admin":false},"assignees":[{"login":"chuckjaz","id":372013,"avatar_url":"https://avatars1.githubusercontent.com/u/372013?v=4","gravatar_id":"","url":"https://api.github.com/users/chuckjaz","html_url":"https://github.com/chuckjaz","followers_url":"https://api.github.com/users/chuckjaz/followers","following_url":"https://api.github.com/users/chuckjaz/following{/other_user}","gists_url":"https://api.github.com/users/chuckjaz/gists{/gist_id}","starred_url":"https://api.github.com/users/chuckjaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuckjaz/subscriptions","organizations_url":"https://api.github.com/users/chuckjaz/orgs","repos_url":"https://api.github.com/users/chuckjaz/repos","events_url":"https://api.github.com/users/chuckjaz/events{/privacy}","received_events_url":"https://api.github.com/users/chuckjaz/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/79","html_url":"https://github.com/angular/angular/milestone/79","labels_url":"https://api.github.com/repos/angular/angular/milestones/79/labels","id":2968016,"number":79,"title":"5.1.2-Sprint 1 (Dec 11 - 19, 2017)","description":"","creator":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars3.githubusercontent.com/u/216296?v=4","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":0,"state":"open","created_at":"2017-12-08T22:09:43Z","updated_at":"2017-12-11T22:34:53Z","due_on":"2017-12-19T08:00:00Z","closed_at":null},"comments":55,"created_at":"2017-07-17T13:39:59Z","updated_at":"2017-12-12T01:45:19Z","closed_at":null,"author_association":"NONE","body":"## I'm submitting a...\r\n<pre><code>\r\n[x] Regression\r\n[ ] Bug report \r\n[ ] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Support request\r\n</code></pre>\r\n\r\n## Current behavior\r\nGetting error when building for production (AOT enabled) with a certain pattern of imports/exports (see below). The error reported is:\r\n```\r\nERROR in Illegal state: symbol without members expected, but got {\"filePath\":\"snip/test/ng/aottest/src/app/shared/role-co\r\nnstants.ts\",\"name\":\"RoleConstants\",\"members\":[\"USER\"]}.\r\n\r\nERROR in ./src/main.ts\r\nModule not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'snip\\test\\ng\\aottest\\src'\r\n @ ./src/main.ts 4:0-74\r\n @ multi ./src/main.ts\r\n```\r\nWorked ok in 4.2.6, does not work in 4.3.0.\r\n\r\n## Expected behavior\r\nng build --prod should build correctly without rising the error.\r\n\r\n## Minimal reproduction of the problem with instructions\r\ndownload [symbol-without-members-error-test-a.zip](https://github.com/angular/angular/files/1152729/symbol-without-members-error-test-a.zip)\r\nnpm install\r\nng build --prod\r\n\r\nThe project contain a newly generated project (with ng new) with a number of files added to reproduce the error:\r\nshared/const.ts - exports a constant field\r\nshared/index.ts - exports consts above\r\nintermediate.ts - imports consts exports aggregated data\r\nindex.ts - exports intermediate above\r\nmodule.ts - is calling RouterModule.forRoot([...intermediate] with intermediate imported from above.\r\n\r\nIf `import { Consts } from './shared';` is changed to `import { Consts } from './shared/consts';` in intermediate.ts the problem does not manifest anymore.\r\n\r\n## What is the motivation / use case for changing the behavior?\r\nn/a\r\n\r\n## Environment\r\n\r\n<pre><code>\r\nAngular version: 4.3.0\r\n(worked ok in 4.2.6.)\r\n\r\nFor Tooling issues:\r\n- Node version: v7.10.0\r\n- Platform: Windows\r\n\r\n</code></pre>\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/350918041","html_url":"https://github.com/angular/angular/issues/18170#issuecomment-350918041","issue_url":"https://api.github.com/repos/angular/angular/issues/18170","id":350918041,"user":{"login":"sunb0002","id":19659266,"avatar_url":"https://avatars1.githubusercontent.com/u/19659266?v=4","gravatar_id":"","url":"https://api.github.com/users/sunb0002","html_url":"https://github.com/sunb0002","followers_url":"https://api.github.com/users/sunb0002/followers","following_url":"https://api.github.com/users/sunb0002/following{/other_user}","gists_url":"https://api.github.com/users/sunb0002/gists{/gist_id}","starred_url":"https://api.github.com/users/sunb0002/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunb0002/subscriptions","organizations_url":"https://api.github.com/users/sunb0002/orgs","repos_url":"https://api.github.com/users/sunb0002/repos","events_url":"https://api.github.com/users/sunb0002/events{/privacy}","received_events_url":"https://api.github.com/users/sunb0002/received_events","type":"User","site_admin":false},"created_at":"2017-12-12T01:45:19Z","updated_at":"2017-12-12T01:45:19Z","author_association":"NONE","body":"@chuckjaz Thanks a lot for the help. It's working now."}}
{"actor":{"display_login":"sunb0002"}}