{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/13617","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/13617/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/13617/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/13617/events","html_url":"https://github.com/Microsoft/TypeScript/issues/13617","id":202331813,"number":13617,"title":"Module Not Found - Compiler does not lookup \"index.js\"","user":{"login":"lusbuab","id":12849807,"avatar_url":"https://avatars.githubusercontent.com/u/12849807?v=3","gravatar_id":"","url":"https://api.github.com/users/lusbuab","html_url":"https://github.com/lusbuab","followers_url":"https://api.github.com/users/lusbuab/followers","following_url":"https://api.github.com/users/lusbuab/following{/other_user}","gists_url":"https://api.github.com/users/lusbuab/gists{/gist_id}","starred_url":"https://api.github.com/users/lusbuab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lusbuab/subscriptions","organizations_url":"https://api.github.com/users/lusbuab/orgs","repos_url":"https://api.github.com/users/lusbuab/repos","events_url":"https://api.github.com/users/lusbuab/events{/privacy}","received_events_url":"https://api.github.com/users/lusbuab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-21T18:31:12Z","updated_at":"2017-01-21T22:43:08Z","closed_at":null,"body":"<!-- BUGS: Please use this template. -->\r\n<!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\r\n<!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\r\n\r\n**TypeScript Version:**  2.1.5, next\r\n\r\n**Code**\r\n\r\n```ts\r\nimport { shallow } from 'enzyme'\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nCompiler does not throw a TS2307 module not found error.\r\n\r\n**Actual behavior:**\r\n\r\nCompiler does not find module \"enzyme\" because enzyme's package.json has `\"main\": \"build\"`. Apparently the compiler does not lookup `build/index.js`.\r\n\r\nManually changing enzyme's \"main\" to `build/index.js` resolves this compiler error.\r\n\r\nThere already was a similar issue with a resulting PR that partially solved the problem: #12748 "},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/274293139","html_url":"https://github.com/Microsoft/TypeScript/issues/13617#issuecomment-274293139","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/13617","id":274293139,"user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"created_at":"2017-01-21T22:43:08Z","updated_at":"2017-01-21T22:43:08Z","body":"duplicate of https://github.com/Microsoft/TypeScript/issues/12198"}}
{"actor":{"display_login":"mhegazy"}}