{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/6443","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/6443/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/6443/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/6443/events","html_url":"https://github.com/angular/angular-cli/issues/6443","id":231094576,"node_id":"MDU6SXNzdWUyMzEwOTQ1NzY=","number":6443,"title":"AOT import * error: ERROR in Illegal state: symbol without members expected, but got","user":{"login":"MaklaCof","id":1589573,"node_id":"MDQ6VXNlcjE1ODk1NzM=","avatar_url":"https://avatars3.githubusercontent.com/u/1589573?v=4","gravatar_id":"","url":"https://api.github.com/users/MaklaCof","html_url":"https://github.com/MaklaCof","followers_url":"https://api.github.com/users/MaklaCof/followers","following_url":"https://api.github.com/users/MaklaCof/following{/other_user}","gists_url":"https://api.github.com/users/MaklaCof/gists{/gist_id}","starred_url":"https://api.github.com/users/MaklaCof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaklaCof/subscriptions","organizations_url":"https://api.github.com/users/MaklaCof/orgs","repos_url":"https://api.github.com/users/MaklaCof/repos","events_url":"https://api.github.com/users/MaklaCof/events{/privacy}","received_events_url":"https://api.github.com/users/MaklaCof/received_events","type":"User","site_admin":false},"labels":[{"id":372202272,"node_id":"MDU6TGFiZWwzNzIyMDIyNzI=","url":"https://api.github.com/repos/angular/angular-cli/labels/priority:%202%20(required)","name":"priority: 2 (required)","color":"0052cc","default":false},{"id":531675405,"node_id":"MDU6TGFiZWw1MzE2NzU0MDU=","url":"https://api.github.com/repos/angular/angular-cli/labels/severity3:%20broken","name":"severity3: broken","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2017-05-24T16:13:54Z","updated_at":"2018-12-21T22:03:47Z","closed_at":"2018-12-21T22:03:47Z","author_association":"NONE","body":"### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n[ I did and search suggested to open new issue.](https://github.com/angular/angular-cli/issues/4821#issuecomment-286188155)\r\n\r\n### Versions.\r\nnode --version: v7.10.0\r\nnpm --version: 4.2.0\r\nwindow 10 - 64bit\r\n\r\n### Repro steps.\r\nRunning command: `webpack --env.aot --env.client & webpack --env.aot --env.server` from [aspnetcore-angular2-universal](https://github.com/MarkPieszak/aspnetcore-angular2-universal).\r\nWhen importing components/services with * I get error if any import also includes *.\r\n**For example this works:**\r\n```\r\n//lazy.module.ts\r\nimport * as components from \"./components/all\";\r\n\r\n//all.ts\r\nimport {SomeComponent} from \"./some\";\r\nexport {SomeComponent};\r\n```\r\n\r\n**And this is not working:**\r\n```\r\n//lazy.module.ts\r\nimport * as components from \"./components/all\";\r\n\r\n//all.ts\r\nimport * as childs from \"./childs\";                 //I THINK THIS CAUSE ERROR\r\nimport {SomeComponent} from \"./some\";\r\nexport {childs, SomeComponent};\r\n\r\n//childs.ts\r\nimport {OtherComponent} from \"./other\";\r\nexport {OtherComponent};\r\n```\r\n\r\n### The log given by the failure.\r\n`ERROR in Illegal state: symbol without members expected, but got {\"filePath\":\"E:/test-project/trunk/test-project/Client/app/modules/lazy/components/all.ts\",\"name\":\"childs\",\"members\":[\"OtherComponent\"]}.\r\n`\r\n### Desired functionality.\r\nAOT compiles successfully.\r\n\r\n\r\n### Full error\r\n```\r\n ERROR in Illegal state: symbol without members expected, but got {\"filePath\":\"E:/test-project/trunk/test-project/Client/app/modules/lazy/components/all.ts\",\"name\":\"childs\",\"members\":[\"OtherComponent\"]}.\r\n\r\n    ERROR in E:/test-project/trunk/test-project/Client/main.server.aot.ts (11,42): Cannot find module './ngfactory/app/server-app.module.ngfactory'.\r\n\r\n    ERROR in ./Client/main.server.aot.ts\r\n    Module not found: Error: Can't resolve './ngfactory/app/server-app.module.ngfactory' in 'E:\\test-project\\trunk\\test-project\\Client'\r\n     @ ./Client/main.server.aot.ts 7:0-87\r\n```"}}
{"actor":{"display_login":"mgechev"}}