{"action":"opened","issue":{"url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/86","labels_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/86/comments","events_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/86/events","html_url":"https://github.com/ivogabe/gulp-typescript/issues/86","id":64049783,"number":86,"title":"Error when using `out` parameter","user":{"login":"keesey","id":124639,"avatar_url":"https://avatars.githubusercontent.com/u/124639?v=3","gravatar_id":"","url":"https://api.github.com/users/keesey","html_url":"https://github.com/keesey","followers_url":"https://api.github.com/users/keesey/followers","following_url":"https://api.github.com/users/keesey/following{/other_user}","gists_url":"https://api.github.com/users/keesey/gists{/gist_id}","starred_url":"https://api.github.com/users/keesey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keesey/subscriptions","organizations_url":"https://api.github.com/users/keesey/orgs","repos_url":"https://api.github.com/users/keesey/repos","events_url":"https://api.github.com/users/keesey/events{/privacy}","received_events_url":"https://api.github.com/users/keesey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-24T17:09:01Z","updated_at":"2015-03-24T17:09:01Z","closed_at":null,"body":"I'm trying to switch to using the new `out` parameter, but I get this error when I try to generate JavaScript files:\r\n\r\n```\r\nTypeError: Cannot read property 'referencedFiles' of undefined\r\n    at sortedEmit (E:\\Git\\JS.Projects\\wfcf-utils\\node_modules\\gulp-typescript\\release\\project.js:414:40)\r\n    at Project.compile (E:\\Git\\JS.Projects\\wfcf-utils\\node_modules\\gulp-typescript\\release\\project.js:427:17)\r\n    at Object.callback (E:\\Git\\JS.Projects\\wfcf-utils\\node_modules\\gulp-typescript\\release\\main.js:63:32)\r\n    at E:\\Git\\JS.Projects\\wfcf-utils\\node_modules\\gulp-typescript\\release\\project.js:250:37\r\n    at fs.js:266:14\r\n    at E:\\Git\\JS.Projects\\wfcf-utils\\node_modules\\karma\\node_modules\\graceful-fs\\graceful-fs.js:104:5\r\n    at Object.oncomplete (fs.js:107:15)\r\n```\r\n\r\nIf I change the line (`project.js`, line 414) that the error occurs in to this, it works:\r\n\r\n```\r\n               var references = tsFile ? tsFile.referencedFiles.map(function (file) { return Project.getFileName(file); }) : [];\r\n```\r\n\r\n(Not sure if that's the best fix, though.)"}}