{"action":"created","issue":{"url":"https://api.github.com/repos/teambition/gulp-sequence/issues/1","labels_url":"https://api.github.com/repos/teambition/gulp-sequence/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/teambition/gulp-sequence/issues/1/comments","events_url":"https://api.github.com/repos/teambition/gulp-sequence/issues/1/events","html_url":"https://github.com/teambition/gulp-sequence/issues/1","id":56574498,"number":1,"title":"TypeError: Object #<Object> has no method 'apply'","user":{"login":"cowwoc","id":633348,"avatar_url":"https://avatars.githubusercontent.com/u/633348?v=3","gravatar_id":"","url":"https://api.github.com/users/cowwoc","html_url":"https://github.com/cowwoc","followers_url":"https://api.github.com/users/cowwoc/followers","following_url":"https://api.github.com/users/cowwoc/following{/other_user}","gists_url":"https://api.github.com/users/cowwoc/gists{/gist_id}","starred_url":"https://api.github.com/users/cowwoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowwoc/subscriptions","organizations_url":"https://api.github.com/users/cowwoc/orgs","repos_url":"https://api.github.com/users/cowwoc/repos","events_url":"https://api.github.com/users/cowwoc/events{/privacy}","received_events_url":"https://api.github.com/users/cowwoc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-04T19:25:04Z","updated_at":"2015-02-08T21:59:02Z","closed_at":null,"body":"Given:\r\n\r\n```\r\ngulp.task(\"fileChanged\", function()\r\n{\r\n\t// Try to access a non-existent object \"event\"\r\n\twebpack.watch(event.path, webpackOptions,\r\n\t{\r\n\t\tbase: path.resolve(event.path)\r\n\t}, function(err, stats)\r\n\t{\r\n\t\t// ...\r\n\t});\r\n}\r\n\r\ngulp.task(\"watch\", [\"browser-sync\"], function()\r\n{\r\n\tgulp.watch(buildConfig.srcDir + \"**/*.js\", [\"javascript\"]).on(\"change\", sequence(\"fileChanged\"));\r\n\tgulp.watch(buildConfig.srcDir + \"**/*.scss\").on(\"change\", sequence(\"fileChanged\", \"css\"));\r\n});\r\ngulp.task(\"default\", [\"watch\"]);\r\n```\r\n\r\nI am getting:\r\n\r\n```\r\n[14:20:35] ReferenceError: event is not defined\r\n    at Gulp.<anonymous> (d:\\Users\\Gili\\Documents\\realestate\\frontend\\Gulpfile.js:94:16)\r\n    at module.exports (d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp\\node_modules\\orchestrator\\lib\\runTask.js:34:7)\r\n    at Gulp.Orchestrator._runTask (d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp\\node_modules\\orchestrator\\index.js:273:3)\r\n    at Gulp.Orchestrator._runStep (d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp\\node_modules\\orchestrator\\index.js:214:10)\r\n    at Gulp.Orchestrator.start (d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp\\node_modules\\orchestrator\\index.js:134:8)\r\n    at d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp-sequence\\index.js:63:12\r\n    at tryRun (d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp-sequence\\node_modules\\thunks\\thunks.js:63:22)\r\n    at runThunk (d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp-sequence\\node_modules\\thunks\\thunks.js:84:11)\r\n    at d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp-sequence\\node_modules\\thunks\\thunks.js:147:49\r\n    at tryRun (d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp-sequence\\node_modules\\thunks\\thunks.js:63:22)\r\n\r\nd:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp-sequence\\node_modules\\thunks\\thunks.js:47\r\n      throw err;\r\n            ^\r\nTypeError: Object #<Object> has no method 'apply'\r\n    at tryRun (d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp-sequence\\node_modules\\thunks\\thunks.js:63:22)\r\n    at callback (d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp-sequence\\node_modules\\thunks\\thunks.js:191:24)\r\n    at next (d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp-sequence\\node_modules\\thunks\\thunks.js:150:33)\r\n    at Gulp.errorListener (d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp-sequence\\index.js:48:11)\r\n    at Gulp.emit (events.js:117:20)\r\n    at Gulp.Orchestrator._emitTaskDone (d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp\\node_modules\\orchestrator\\index.js:264:8)\r\n    at d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp\\node_modules\\orchestrator\\index.js:275:23\r\n    at finish (d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp\\node_modules\\orchestrator\\lib\\runTask.js:21:8)\r\n    at module.exports (d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp\\node_modules\\orchestrator\\lib\\runTask.js:36:10)\r\n    at Gulp.Orchestrator._runTask (d:\\Users\\Gili\\Documents\\realestate\\frontend\\node_modules\\gulp\\node_modules\\orchestrator\\index.js:273:3)\r\n```\r\n\r\nIt looks like https://github.com/teambition/gulp-sequence/blob/master/index.js#L48 does not contain the kind of value you expect."},"comment":{"url":"https://api.github.com/repos/teambition/gulp-sequence/issues/comments/73434583","html_url":"https://github.com/teambition/gulp-sequence/issues/1#issuecomment-73434583","issue_url":"https://api.github.com/repos/teambition/gulp-sequence/issues/1","id":73434583,"user":{"login":"cowwoc","id":633348,"avatar_url":"https://avatars.githubusercontent.com/u/633348?v=3","gravatar_id":"","url":"https://api.github.com/users/cowwoc","html_url":"https://github.com/cowwoc","followers_url":"https://api.github.com/users/cowwoc/followers","following_url":"https://api.github.com/users/cowwoc/following{/other_user}","gists_url":"https://api.github.com/users/cowwoc/gists{/gist_id}","starred_url":"https://api.github.com/users/cowwoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowwoc/subscriptions","organizations_url":"https://api.github.com/users/cowwoc/orgs","repos_url":"https://api.github.com/users/cowwoc/repos","events_url":"https://api.github.com/users/cowwoc/events{/privacy}","received_events_url":"https://api.github.com/users/cowwoc/received_events","type":"User","site_admin":false},"created_at":"2015-02-08T21:59:02Z","updated_at":"2015-02-08T21:59:02Z","body":"Got it. Were any commits applied against improving error handling? I ask because I don't see any references attached to this issue."}}