{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6790","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6790/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6790/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6790/events","html_url":"https://github.com/Microsoft/TypeScript/issues/6790","id":130456566,"number":6790,"title":"allowJs crashing on moments JS file","user":{"login":"erikcharlebois","id":134462,"avatar_url":"https://avatars.githubusercontent.com/u/134462?v=3","gravatar_id":"","url":"https://api.github.com/users/erikcharlebois","html_url":"https://github.com/erikcharlebois","followers_url":"https://api.github.com/users/erikcharlebois/followers","following_url":"https://api.github.com/users/erikcharlebois/following{/other_user}","gists_url":"https://api.github.com/users/erikcharlebois/gists{/gist_id}","starred_url":"https://api.github.com/users/erikcharlebois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikcharlebois/subscriptions","organizations_url":"https://api.github.com/users/erikcharlebois/orgs","repos_url":"https://api.github.com/users/erikcharlebois/repos","events_url":"https://api.github.com/users/erikcharlebois/events{/privacy}","received_events_url":"https://api.github.com/users/erikcharlebois/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-01T19:22:29Z","updated_at":"2016-02-01T19:22:29Z","closed_at":null,"body":"tsc --allowJs moment-with-locales.min.js \r\n\r\non min/moment-with-locales.min.js\r\nfrom https://github.com/moment/moment/archive/2.11.1.zip\r\n\r\ngives\r\nnode_modules/typescript/lib/tsc.js:32405\r\n        if (moduleName.indexOf(\"!\") != -1) {\r\n                      ^\r\nTypeError: Cannot read property 'indexOf' of undefined\r\n    at classicNameResolver (node_modules/typescript/lib/tsc.js:32405:23)\r\n    at resolveModuleName (node_modules/typescript/lib/tsc.js:32308:28)\r\n    at resolveModuleNamesWorker (node_modules/typescript/lib/tsc.js:32573:40)\r\n    at processImportedModules (node_modules/typescript/lib/tsc.js:33156:35)\r\n    at findSourceFile (node_modules/typescript/lib/tsc.js:33132:17)\r\n    at processSourceFile node_modules/typescript/lib/tsc.js:33059:27)\r\n    at processRootFile (node_modules/typescript/lib/tsc.js:32982:13)\r\n    at node_modules/typescript/lib/tsc.js:32594:60\r\n    at Object.forEach (node_modules/typescript/lib/tsc.js:98:30)\r\n    at Object.createProgram (node_modules/typescript/lib/tsc.js:32594:16)"}}