{"action":"created","issue":{"url":"https://api.github.com/repos/monounity/karma-typescript/issues/48","repository_url":"https://api.github.com/repos/monounity/karma-typescript","labels_url":"https://api.github.com/repos/monounity/karma-typescript/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/monounity/karma-typescript/issues/48/comments","events_url":"https://api.github.com/repos/monounity/karma-typescript/issues/48/events","html_url":"https://github.com/monounity/karma-typescript/issues/48","id":195632497,"number":48,"title":"Declarations included w/ pre processed files causes error","user":{"login":"kylestlb","id":1980678,"avatar_url":"https://avatars.githubusercontent.com/u/1980678?v=3","gravatar_id":"","url":"https://api.github.com/users/kylestlb","html_url":"https://github.com/kylestlb","followers_url":"https://api.github.com/users/kylestlb/followers","following_url":"https://api.github.com/users/kylestlb/following{/other_user}","gists_url":"https://api.github.com/users/kylestlb/gists{/gist_id}","starred_url":"https://api.github.com/users/kylestlb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylestlb/subscriptions","organizations_url":"https://api.github.com/users/kylestlb/orgs","repos_url":"https://api.github.com/users/kylestlb/repos","events_url":"https://api.github.com/users/kylestlb/events{/privacy}","received_events_url":"https://api.github.com/users/kylestlb/received_events","type":"User","site_admin":false},"labels":[{"id":429965888,"url":"https://api.github.com/repos/monounity/karma-typescript/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/monounity/karma-typescript/milestones/12","html_url":"https://github.com/monounity/karma-typescript/milestone/12","labels_url":"https://api.github.com/repos/monounity/karma-typescript/milestones/12/labels","id":2198841,"number":12,"title":"2.1.6","description":"","creator":{"login":"erikbarke","id":5539280,"avatar_url":"https://avatars.githubusercontent.com/u/5539280?v=3","gravatar_id":"","url":"https://api.github.com/users/erikbarke","html_url":"https://github.com/erikbarke","followers_url":"https://api.github.com/users/erikbarke/followers","following_url":"https://api.github.com/users/erikbarke/following{/other_user}","gists_url":"https://api.github.com/users/erikbarke/gists{/gist_id}","starred_url":"https://api.github.com/users/erikbarke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikbarke/subscriptions","organizations_url":"https://api.github.com/users/erikbarke/orgs","repos_url":"https://api.github.com/users/erikbarke/repos","events_url":"https://api.github.com/users/erikbarke/events{/privacy}","received_events_url":"https://api.github.com/users/erikbarke/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":5,"state":"open","created_at":"2016-12-15T14:32:03Z","updated_at":"2016-12-28T11:43:35Z","due_on":"2017-01-01T08:00:00Z","closed_at":null},"comments":5,"created_at":"2016-12-14T20:06:54Z","updated_at":"2016-12-28T15:36:08Z","closed_at":null,"body":"Hi all, using typescript 1.75 and am bumping into a weird error:\r\n\r\n`14 12 2016 11:54:10.354:ERROR [karma]: TypeError: Data must be a string or a buffer\r\n  at Hash.update (crypto.js:74:16)\r\n  at sha1 (/Users/kyle/Documents/workspace/karma/DreamcatcherUX/node_modules/karma/lib/preprocessor.js:11:8)\r\n  at nextPreprocessor (/Users/kyle/Documents/workspace/karma/DreamcatcherUX/node_modules/karma/lib/preprocessor.js:32:18)\r\n  at instrumentSource (/Users/kyle/Documents/workspace/karma/DreamcatcherUX/node_modules/karma-typescript/lib/preprocessor.js:110:13)\r\n  at /Users/kyle/Documents/workspace/karma/DreamcatcherUX/node_modules/karma-typescript/lib/preprocessor.js:154:25\r\n  at Bundler.bundle (/Users/kyle/Documents/workspace/karma/DreamcatcherUX/node_modules/karma-typescript/lib/bundlers/builtin/bundler.js:67:13)\r\n  at Object.callback (/Users/kyle/Documents/workspace/karma/DreamcatcherUX/node_modules/karma-typescript/lib/preprocessor.js:150:29)\r\n  at /Users/kyle/Documents/workspace/karma/DreamcatcherUX/node_modules/karma-typescript/lib/compiler.js:76:20\r\n  at Array.forEach (native)\r\n  at /Users/kyle/Documents/workspace/karma/DreamcatcherUX/node_modules/karma-typescript/lib/compiler.js:66:19\r\n  at invokeFunc (/Users/kyle/Documents/workspace/karma/DreamcatcherUX/node_modules/lodash.debounce/index.js:160:19)\r\n  at trailingEdge (/Users/kyle/Documents/workspace/karma/DreamcatcherUX/node_modules/lodash.debounce/index.js:207:14)\r\n  at Timeout.timerExpired [as _onTimeout] (/Users/kyle/Documents/workspace/karma/DreamcatcherUX/node_modules/lodash.debounce/index.js:195:14)\r\n  at ontimeout (timers.js:365:14)\r\n  at tryOnTimeout (timers.js:237:5)\r\n  at Timer.listOnTimeout (timers.js:207:5)\r\n`\r\n\r\nThis only happens when I include my declarations folder with the rest of my *.ts source.  If I exclude the folder, it works, and opens phantomJS just fine.  I'm on node 7.2.1.\r\n\r\nIt looks like we are passing 'undefined' to the hash.update() function in preprocessor.js.  Am I supposed to exclude declaration files for karma-typescript to work?  Google-fu didn't really reveal much.  "},"comment":{"url":"https://api.github.com/repos/monounity/karma-typescript/issues/comments/269493522","html_url":"https://github.com/monounity/karma-typescript/issues/48#issuecomment-269493522","issue_url":"https://api.github.com/repos/monounity/karma-typescript/issues/48","id":269493522,"user":{"login":"erikbarke","id":5539280,"avatar_url":"https://avatars.githubusercontent.com/u/5539280?v=3","gravatar_id":"","url":"https://api.github.com/users/erikbarke","html_url":"https://github.com/erikbarke","followers_url":"https://api.github.com/users/erikbarke/followers","following_url":"https://api.github.com/users/erikbarke/following{/other_user}","gists_url":"https://api.github.com/users/erikbarke/gists{/gist_id}","starred_url":"https://api.github.com/users/erikbarke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikbarke/subscriptions","organizations_url":"https://api.github.com/users/erikbarke/orgs","repos_url":"https://api.github.com/users/erikbarke/repos","events_url":"https://api.github.com/users/erikbarke/events{/privacy}","received_events_url":"https://api.github.com/users/erikbarke/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T15:36:08Z","updated_at":"2016-12-28T15:36:08Z","body":"Stupid oversight on my part, the Typescript api changes between versions...\r\n\r\n@kylestlb, does it work for you if you install from the latest dev branch, `npm install https://github.com/monounity/karma-typescript.git#2.1.6`?\r\nIf you’re behind a firewall and can’t install from GitHub, you can download the branch as a zip and install manually."}}
{"actor":{"display_login":"erikbarke"}}