{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6591","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6591/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6591/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6591/events","html_url":"https://github.com/Microsoft/TypeScript/issues/6591","id":128342605,"number":6591,"title":"Cannot compile modules unless the '--module' flag is provided","user":{"login":"jedmao","id":1058243,"avatar_url":"https://avatars.githubusercontent.com/u/1058243?v=3","gravatar_id":"","url":"https://api.github.com/users/jedmao","html_url":"https://github.com/jedmao","followers_url":"https://api.github.com/users/jedmao/followers","following_url":"https://api.github.com/users/jedmao/following{/other_user}","gists_url":"https://api.github.com/users/jedmao/gists{/gist_id}","starred_url":"https://api.github.com/users/jedmao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedmao/subscriptions","organizations_url":"https://api.github.com/users/jedmao/orgs","repos_url":"https://api.github.com/users/jedmao/repos","events_url":"https://api.github.com/users/jedmao/events{/privacy}","received_events_url":"https://api.github.com/users/jedmao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-23T17:54:09Z","updated_at":"2016-01-23T19:28:16Z","closed_at":null,"body":"My tsconfig.json file has the `--module` flag provided; yet, the `tsc foo.ts` command tells me:\r\n```bash\r\nfoo.ts(1,25): error TS1148: Cannot compile modules unless the '--module' flag is provided.\r\n```\r\nHere is my tsconfig.json:\r\n```json\r\n{\r\n    \"compilerOptions\": {\r\n        \"module\": \"es6\",\r\n        \"target\": \"es6\"\r\n    },\r\n    \"exclude\": [\r\n        \"node_modules\"\r\n    ]\r\n}\r\n```\r\nAnd here is the file I'm trying to compile:\r\n```ts\r\nexport default function foo() {\r\n    console.log('foo');\r\n}\r\n```\r\n\r\n```\r\n$ tsc -v\r\nmessage TS6029: Version 1.7.5\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/174214290","html_url":"https://github.com/Microsoft/TypeScript/issues/6591#issuecomment-174214290","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6591","id":174214290,"user":{"login":"falsandtru","id":3143368,"avatar_url":"https://avatars.githubusercontent.com/u/3143368?v=3","gravatar_id":"","url":"https://api.github.com/users/falsandtru","html_url":"https://github.com/falsandtru","followers_url":"https://api.github.com/users/falsandtru/followers","following_url":"https://api.github.com/users/falsandtru/following{/other_user}","gists_url":"https://api.github.com/users/falsandtru/gists{/gist_id}","starred_url":"https://api.github.com/users/falsandtru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falsandtru/subscriptions","organizations_url":"https://api.github.com/users/falsandtru/orgs","repos_url":"https://api.github.com/users/falsandtru/repos","events_url":"https://api.github.com/users/falsandtru/events{/privacy}","received_events_url":"https://api.github.com/users/falsandtru/received_events","type":"User","site_admin":false},"created_at":"2016-01-23T19:28:16Z","updated_at":"2016-01-23T19:28:16Z","body":"What is the expected behavior?"}}