{"action":"created","issue":{"url":"https://api.github.com/repos/furzeface/gulp-cache-bust/issues/2","labels_url":"https://api.github.com/repos/furzeface/gulp-cache-bust/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/furzeface/gulp-cache-bust/issues/2/comments","events_url":"https://api.github.com/repos/furzeface/gulp-cache-bust/issues/2/events","html_url":"https://github.com/furzeface/gulp-cache-bust/issues/2","id":55681270,"number":2,"title":"TypeError","user":{"login":"kseagrav","id":8261145,"avatar_url":"https://avatars.githubusercontent.com/u/8261145?v=3","gravatar_id":"","url":"https://api.github.com/users/kseagrav","html_url":"https://github.com/kseagrav","followers_url":"https://api.github.com/users/kseagrav/followers","following_url":"https://api.github.com/users/kseagrav/following{/other_user}","gists_url":"https://api.github.com/users/kseagrav/gists{/gist_id}","starred_url":"https://api.github.com/users/kseagrav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kseagrav/subscriptions","organizations_url":"https://api.github.com/users/kseagrav/orgs","repos_url":"https://api.github.com/users/kseagrav/repos","events_url":"https://api.github.com/users/kseagrav/events{/privacy}","received_events_url":"https://api.github.com/users/kseagrav/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/furzeface/gulp-cache-bust/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/furzeface/gulp-cache-bust/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-27T22:04:40Z","updated_at":"2015-04-11T13:18:22Z","closed_at":null,"body":"If I try to use this, I get the error: \r\n\r\nTypeError: Object #\\<CacheBuster\\> has no method 'on'\r\n    at Transform.Readable.pipe (/home/kseagraves/trunk/app/WebView/node_modules/gulp-usemin/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:516:8)\r\n    at Gulp.gulp.task.gulp.src.base (/home/kseagraves/trunk/app/WebView/gulpfile.js:130:10)\r\n    at module.exports (/home/kseagraves/trunk/app/WebView/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7)\r\n    at Gulp.Orchestrator._runTask (/home/kseagraves/trunk/app/WebView/node_modules/gulp/node_modules/orchestrator/index.js:273:3)\r\n    at Gulp.Orchestrator._runStep (/home/kseagraves/trunk/app/WebView/node_modules/gulp/node_modules/orchestrator/index.js:214:10)\r\n    at /home/kseagraves/trunk/app/WebView/node_modules/gulp/node_modules/orchestrator/index.js:279:18\r\n    at finish (/home/kseagraves/trunk/app/WebView/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:21:8)\r\n    at module.exports (/home/kseagraves/trunk/app/WebView/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:60:3)\r\n    at Gulp.Orchestrator._runTask (/home/kseagraves/trunk/app/WebView/node_modules/gulp/node_modules/orchestrator/index.js:273:3)\r\n    at Gulp.Orchestrator._runStep (/home/kseagraves/trunk/app/WebView/node_modules/gulp/node_modules/orchestrator/index.js:214:10)\r\n\r\n\r\nMy implementing code looks like:\r\n    gulp.src(html_files)\r\n        .pipe(usemin({\r\n            css:  [minifyCSS(css_minifier_options), 'concat'],\r\n            html: [minifyHTML(html_minifier_options)],\r\n            js:   [uglify(uglify_options)]\r\n        }))\r\n        .pipe(cachebust({\r\n            type: 'timestamp'\r\n        }))\r\n        .pipe(gulp.dest('./' + dir + '/'));\r\n\r\n\r\nIf I remove the lines about cachebust, I don't get any errors, so I believe this package is the source of the problem."},"comment":{"url":"https://api.github.com/repos/furzeface/gulp-cache-bust/issues/comments/91844051","html_url":"https://github.com/furzeface/gulp-cache-bust/issues/2#issuecomment-91844051","issue_url":"https://api.github.com/repos/furzeface/gulp-cache-bust/issues/2","id":91844051,"user":{"login":"titancat","id":3294102,"avatar_url":"https://avatars.githubusercontent.com/u/3294102?v=3","gravatar_id":"","url":"https://api.github.com/users/titancat","html_url":"https://github.com/titancat","followers_url":"https://api.github.com/users/titancat/followers","following_url":"https://api.github.com/users/titancat/following{/other_user}","gists_url":"https://api.github.com/users/titancat/gists{/gist_id}","starred_url":"https://api.github.com/users/titancat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titancat/subscriptions","organizations_url":"https://api.github.com/users/titancat/orgs","repos_url":"https://api.github.com/users/titancat/repos","events_url":"https://api.github.com/users/titancat/events{/privacy}","received_events_url":"https://api.github.com/users/titancat/received_events","type":"User","site_admin":false},"created_at":"2015-04-11T13:18:22Z","updated_at":"2015-04-11T13:18:22Z","body":"@furzeface \r\n\r\nI got a type error like this.\r\n\r\n```\r\nUsers/cat/projects/gulp-test/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:516\r\n  dest.on('unpipe', onunpipe);\r\n       ^\r\nTypeError: undefined is not a function\r\n    at DestroyableTransform.Readable.pipe (/Users/cat/projects/gulp-test/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:516:8)\r\n    at Object.<anonymous> (/Users/cat/projects/gulp-test/md5-test/gulpfile.js:11:4)\r\n    at Module._compile (module.js:460:26)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp/bin/gulp.js:116:3)\r\n    at Liftoff.<anonymous> (/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:181:16)\r\n```\r\n\r\nFurthermore, your example code on [npm](https://www.npmjs.com/package/gulp-cache-bust/) miss a `)` in `Usage` part ."}}