{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5812","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5812/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5812/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5812/events","html_url":"https://github.com/Microsoft/TypeScript/issues/5812","id":119172391,"number":5812,"title":"Cannot find module 'fs'","user":{"login":"sjclemmy","id":1101854,"avatar_url":"https://avatars.githubusercontent.com/u/1101854?v=3","gravatar_id":"","url":"https://api.github.com/users/sjclemmy","html_url":"https://github.com/sjclemmy","followers_url":"https://api.github.com/users/sjclemmy/followers","following_url":"https://api.github.com/users/sjclemmy/following{/other_user}","gists_url":"https://api.github.com/users/sjclemmy/gists{/gist_id}","starred_url":"https://api.github.com/users/sjclemmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjclemmy/subscriptions","organizations_url":"https://api.github.com/users/sjclemmy/orgs","repos_url":"https://api.github.com/users/sjclemmy/repos","events_url":"https://api.github.com/users/sjclemmy/events{/privacy}","received_events_url":"https://api.github.com/users/sjclemmy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Needs%20More%20Info","name":"Needs More Info","color":"556b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-27T10:30:56Z","updated_at":"2015-11-29T14:54:06Z","closed_at":null,"body":"Possibly related to https://github.com/Microsoft/TypeScript/issues/5149 \r\nI'm getting the above error when trying to compile a node reference. I've set up all the typings correctly I believe, my IDE (webStorm) is comfortable with the module name resolution and the compiled files are correct. However the compiler is still throwing these errors for core node components. \r\nIs this a current issue or am I missing something?"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/160420866","html_url":"https://github.com/Microsoft/TypeScript/issues/5812#issuecomment-160420866","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5812","id":160420866,"user":{"login":"sjclemmy","id":1101854,"avatar_url":"https://avatars.githubusercontent.com/u/1101854?v=3","gravatar_id":"","url":"https://api.github.com/users/sjclemmy","html_url":"https://github.com/sjclemmy","followers_url":"https://api.github.com/users/sjclemmy/followers","following_url":"https://api.github.com/users/sjclemmy/following{/other_user}","gists_url":"https://api.github.com/users/sjclemmy/gists{/gist_id}","starred_url":"https://api.github.com/users/sjclemmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjclemmy/subscriptions","organizations_url":"https://api.github.com/users/sjclemmy/orgs","repos_url":"https://api.github.com/users/sjclemmy/repos","events_url":"https://api.github.com/users/sjclemmy/events{/privacy}","received_events_url":"https://api.github.com/users/sjclemmy/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T14:54:06Z","updated_at":"2015-11-29T14:54:06Z","body":"Found the issue.\r\nMy script has `#!/usr/local/bin/node` at the top. This causes the issue."}}