{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/9670","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/9670/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/9670/comments","events_url":"https://api.github.com/repos/angular/angular/issues/9670/events","html_url":"https://github.com/angular/angular/issues/9670","id":162693005,"number":9670,"title":"ngc not working with static symbols used with Angular 1 code (ngUpgrade)","user":{"login":"marcalj","id":63667,"avatar_url":"https://avatars.githubusercontent.com/u/63667?v=3","gravatar_id":"","url":"https://api.github.com/users/marcalj","html_url":"https://github.com/marcalj","followers_url":"https://api.github.com/users/marcalj/followers","following_url":"https://api.github.com/users/marcalj/following{/other_user}","gists_url":"https://api.github.com/users/marcalj/gists{/gist_id}","starred_url":"https://api.github.com/users/marcalj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcalj/subscriptions","organizations_url":"https://api.github.com/users/marcalj/orgs","repos_url":"https://api.github.com/users/marcalj/repos","events_url":"https://api.github.com/users/marcalj/events{/privacy}","received_events_url":"https://api.github.com/users/marcalj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular/labels/comp:%20compiler-cli","name":"comp: compiler-cli","color":"c7def8"},{"url":"https://api.github.com/repos/angular/angular/labels/type:%20RFC%20/%20discussion%20/%20question","name":"type: RFC / discussion / question","color":"EEEEEE"},{"url":"https://api.github.com/repos/angular/angular/labels/workaround1:%20obvious","name":"workaround1: obvious","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"chuckjaz","id":372013,"avatar_url":"https://avatars.githubusercontent.com/u/372013?v=3","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://avatars.githubusercontent.com/u/372013?v=3","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":null,"comments":14,"created_at":"2016-06-28T13:59:58Z","updated_at":"2016-07-06T21:30:15Z","closed_at":null,"body":"**I'm submitting a ...**\r\n```\r\n[x] bug report\r\n```\r\n\r\n**Current behavior**\r\nI'm getting this error:\r\n\r\n```\r\n$ ./node_modules/.bin/ngc\r\nFailed on type {\"filePath\":\"/.../testApp/app/scripts/core/sectionhelp.component.ts\",\"name\":\"SectionHelpComponent\"} with error Error: Error encountered resolving symbol values statically. Qualified type names not supported (position 18:53 in the original .ts file), resolving symbol SectionHelpComponent in /.../testApp/app/scripts/core/section-help.component.ts\r\nError: Error encountered resolving symbol values statically. Qualified type names not supported (position 18:53 in the original .ts file), resolving symbol SectionHelpComponent in /.../testApp/app/scripts/core/section-help.component.ts\r\nat simplifyInContext (/.../testApp/node_modules/@angular/compiler-cli/src/static_reflector.js:409:23)\r\nat StaticReflector.simplify (/.../testApp/node_modules/@angular/compiler-cli/src/static_reflector.js:412:22)\r\nat StaticReflector.parameters (/.../testApp/node_modules/@angular/compiler-cli/src/static_reflector.js:85:47)\r\nat CompileMetadataResolver.getDependenciesMetadata (/.../testApp/node_modules/@angular/compiler/src/metadata_resolver.js:224:86)\r\nat CompileMetadataResolver.getTypeMetadata (/.../testApp/node_modules/@angular/compiler/src/metadata_resolver.js:173:26)\r\nat CompileMetadataResolver.getDirectiveMetadata (/.../testApp/node_modules/@angular/compiler/src/metadata_resolver.js:136:28)\r\nat CompileMetadataResolver.maybeGetDirectiveMetadata (/.../testApp/node_modules/@angular/compiler/src/metadata_resolver.js:158:25)\r\nat CodeGenerator.readComponents (/.../testApp/node_modules/@angular/compiler-cli/src/codegen.js:62:39)\r\nat generateOneFile (/.../testApp/node_modules/@angular/compiler-cli/src/codegen.js:100:38)\r\nat Array.map (native)\r\nCompilation failed\r\n```\r\n\r\nOn this code:\r\n\r\n```ts\r\n@Component({\r\n    selector: 'section-help',\r\n    templateUrl: 'scripts/core/section-help.component.html',\r\n    directives: [CORE_DIRECTIVES],\r\n    pipes: [TranslateNG1Pipe],\r\n})\r\nexport class SectionHelpComponent implements OnInit {\r\n    private language:string;\r\n    private locationHash:string;\r\n    private loading:boolean;\r\n    private helpList:any[];\r\n    private glossaryList:any[];\r\n\r\n    constructor(@Inject('$timeout') private $timeout:ng.ITimeoutService,\r\n                @Inject('$location') private $location:ng.ILocationService,\r\n                private HelpService:HelpService) {\r\n    }\r\n```\r\n\r\nIf I remove the types from Angular 1 it successfully compiles using ```ngc```:\r\n\r\n```ts\r\n    constructor(@Inject('$timeout') private $timeout,\r\n                @Inject('$location') private $location,\r\n                private HelpService:HelpService) {\r\n    }\r\n```\r\n\r\nThis code works perfectly compiling using ```tsc``` in dynamic mode.\r\n\r\n**Expected/desired behavior**\r\nBe able to compile using Angular 1 types and custom interfaces.\r\n\r\n**Please tell us about your environment:**\r\n\r\n* **Angular version:** 2.0.0-rc.3\r\n  \r\n* **Language:** TypeScript 1.9\r\n\r\n@alexeagle \r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/230913154","html_url":"https://github.com/angular/angular/issues/9670#issuecomment-230913154","issue_url":"https://api.github.com/repos/angular/angular/issues/9670","id":230913154,"user":{"login":"chuckjaz","id":372013,"avatar_url":"https://avatars.githubusercontent.com/u/372013?v=3","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},"created_at":"2016-07-06T21:30:14Z","updated_at":"2016-07-06T21:30:14Z","body":"@marcalj No problem. I will commit this as is. It seems to be fixing the underlying problem."}}
{"actor":{"display_login":"chuckjaz"}}