{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/20611","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/20611/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/20611/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/20611/events","html_url":"https://github.com/Microsoft/TypeScript/issues/20611","id":280903290,"number":20611,"title":"Undecipherable error at visitImportEqualsDeclaration","user":{"login":"brian428","id":140338,"avatar_url":"https://avatars3.githubusercontent.com/u/140338?v=4","gravatar_id":"","url":"https://api.github.com/users/brian428","html_url":"https://github.com/brian428","followers_url":"https://api.github.com/users/brian428/followers","following_url":"https://api.github.com/users/brian428/following{/other_user}","gists_url":"https://api.github.com/users/brian428/gists{/gist_id}","starred_url":"https://api.github.com/users/brian428/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian428/subscriptions","organizations_url":"https://api.github.com/users/brian428/orgs","repos_url":"https://api.github.com/users/brian428/repos","events_url":"https://api.github.com/users/brian428/events{/privacy}","received_events_url":"https://api.github.com/users/brian428/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-11T06:05:09Z","updated_at":"2017-12-11T08:42:25Z","closed_at":null,"author_association":"NONE","body":"**TypeScript Version:**  2.6.2\r\n\r\n**Expected behavior:** If something is wrong, TS should give some information on what is causing the error.\r\n\r\n**Actual behavior:** Using TypeScript 2.6.2 with an Angular 5 AoT build, I'm getting the following undecipherable error:\r\n```\r\nError: Error: Debug Failure. False expression: import= for internal module references should be handled in an earlier transformer.\r\n    at visitImportEqualsDeclaration (C:\\Developer\\Projects\\BAH\\medusa\\ui\\node_modules\\typescript\\lib\\typescript.js:63184:22)\r\n    at sourceElementVisitor (C:\\Developer\\Projects\\BAH\\medusa\\ui\\node_modules\\typescript\\lib\\typescript.js:62959:28)\r\n```\r\n\r\nObviously, I have no idea what this means, and I have no way to even start trying to determine what code might be causing this. This project built fine under Angular 4, so I assume it's related to moving to Angular 5. But again, since the error gives no context at all, I have no way to try and determine the cause. Could this be changed to output a file name, a dump of the relevant code...anything that would at least give some pointer to the cause of the error?"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/350657324","html_url":"https://github.com/Microsoft/TypeScript/issues/20611#issuecomment-350657324","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/20611","id":350657324,"user":{"login":"DanielRosenwasser","id":972891,"avatar_url":"https://avatars2.githubusercontent.com/u/972891?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielRosenwasser","html_url":"https://github.com/DanielRosenwasser","followers_url":"https://api.github.com/users/DanielRosenwasser/followers","following_url":"https://api.github.com/users/DanielRosenwasser/following{/other_user}","gists_url":"https://api.github.com/users/DanielRosenwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRosenwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRosenwasser/subscriptions","organizations_url":"https://api.github.com/users/DanielRosenwasser/orgs","repos_url":"https://api.github.com/users/DanielRosenwasser/repos","events_url":"https://api.github.com/users/DanielRosenwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRosenwasser/received_events","type":"User","site_admin":false},"created_at":"2017-12-11T08:42:25Z","updated_at":"2017-12-11T08:42:25Z","author_association":"MEMBER","body":"We understand the cause of the message (basically an import alias was either not rewritten in our emit pipeline, or was inappropriately generated by an earlier AST transform), but it's not clear if it's a problem with Angular's AOT emit or something about our transform API. I'll also note that Angular 5's supported TypeScript version is 2.4.2, so it might just be a matter of version incompatibility. \r\n\r\nOne other thing I'll note is we can't do much without a minimal repro of the issue."}}
{"actor":{"display_login":"DanielRosenwasser"}}