{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1544","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1544/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1544/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1544/events","html_url":"https://github.com/Microsoft/TypeScript/issues/1544","id":52576280,"number":1544,"title":"No output with --out when using import statement","user":{"login":"felixSchl","id":2703310,"avatar_url":"https://avatars.githubusercontent.com/u/2703310?v=3","gravatar_id":"","url":"https://api.github.com/users/felixSchl","html_url":"https://github.com/felixSchl","followers_url":"https://api.github.com/users/felixSchl/followers","following_url":"https://api.github.com/users/felixSchl/following{/other_user}","gists_url":"https://api.github.com/users/felixSchl/gists{/gist_id}","starred_url":"https://api.github.com/users/felixSchl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixSchl/subscriptions","organizations_url":"https://api.github.com/users/felixSchl/orgs","repos_url":"https://api.github.com/users/felixSchl/repos","events_url":"https://api.github.com/users/felixSchl/events{/privacy}","received_events_url":"https://api.github.com/users/felixSchl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Fixed","name":"Fixed","color":"bfe5bf"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Suggestion","name":"Suggestion","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/15","html_url":"https://github.com/Microsoft/TypeScript/milestones/TypeScript%201.8","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/15/labels","id":1347987,"number":15,"title":"TypeScript 1.8","description":"","creator":{"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},"open_issues":0,"closed_issues":314,"state":"closed","created_at":"2015-10-09T22:07:47Z","updated_at":"2016-05-04T18:18:20Z","due_on":null,"closed_at":"2016-01-28T20:08:21Z"},"comments":22,"created_at":"2014-12-20T20:52:54Z","updated_at":"2016-05-31T16:09:07Z","closed_at":"2015-11-11T01:00:56Z","body":"This cost me quite a bit of time, so please enlighten me if this is anticipated behaviour and let's put a big note in the docs. \r\n\r\n`tsc --module commonjs --out app.js app.ts` type checks correctly, however produces **no output**. In fact it does not produce output with `--module amd` either.\r\n\r\n`tsc --module commonjs app.ts` type checks correctly and produces output, but I do not have control over the location of the output.\r\n\r\nFor reference, I am developing a node app.\r\n\r\nLet's say my app looks like this:\r\n\r\n```\r\n/// <reference path=\"./typings/node/node.d.ts\"/>\r\n/// <reference path=\"./typings/lodash/lodash.d.ts\"/>\r\nimport _     = require(\"lodash\");\r\nvar x = \"test\";\r\n```\r\n\r\nand I used `tsc --module commonjs --out app.js app.ts` to compile, I would get no output at all\r\n\r\nTo get my output back, I would either need to drop the `import` statement or drop the `--out` argument.\r\n\r\nThis is happening on version 1.3.0.0"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/222737881","html_url":"https://github.com/Microsoft/TypeScript/issues/1544#issuecomment-222737881","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1544","id":222737881,"user":{"login":"fcamblor","id":603815,"avatar_url":"https://avatars.githubusercontent.com/u/603815?v=3","gravatar_id":"","url":"https://api.github.com/users/fcamblor","html_url":"https://github.com/fcamblor","followers_url":"https://api.github.com/users/fcamblor/followers","following_url":"https://api.github.com/users/fcamblor/following{/other_user}","gists_url":"https://api.github.com/users/fcamblor/gists{/gist_id}","starred_url":"https://api.github.com/users/fcamblor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcamblor/subscriptions","organizations_url":"https://api.github.com/users/fcamblor/orgs","repos_url":"https://api.github.com/users/fcamblor/repos","events_url":"https://api.github.com/users/fcamblor/events{/privacy}","received_events_url":"https://api.github.com/users/fcamblor/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T16:09:07Z","updated_at":"2016-05-31T16:09:07Z","body":"FYI (and because I spent an hour on this as well), if you :\r\n- Rely on `tsconfig.json` for your compilation, use `outFile` and *not* define any `module` entry in the file\r\n- Use either `grunt-ts` or Intellij IDEA Compiler to compile typescript from the `tsconfig`\r\n\r\nThen, your resulting `app.js` will be empty as well.\r\n\r\nWorkaround : put a `module` entry in your `tsconfig.json` file\r\n\r\nNote: I only tested with `grunt-ts` and `IntelliJ IDEA`, but maybe other tool may be concerned by this problem as well."}}
{"actor":{"display_login":"fcamblor"}}