{"action":"closed","issue":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/1447","labels_url":"https://api.github.com/repos/gulpjs/gulp/issues/1447/labels{/name}","comments_url":"https://api.github.com/repos/gulpjs/gulp/issues/1447/comments","events_url":"https://api.github.com/repos/gulpjs/gulp/issues/1447/events","html_url":"https://github.com/gulpjs/gulp/issues/1447","id":123417340,"number":1447,"title":"Gulp throw error when run the command","user":{"login":"3gwebtrain","id":6211826,"avatar_url":"https://avatars.githubusercontent.com/u/6211826?v=3","gravatar_id":"","url":"https://api.github.com/users/3gwebtrain","html_url":"https://github.com/3gwebtrain","followers_url":"https://api.github.com/users/3gwebtrain/followers","following_url":"https://api.github.com/users/3gwebtrain/following{/other_user}","gists_url":"https://api.github.com/users/3gwebtrain/gists{/gist_id}","starred_url":"https://api.github.com/users/3gwebtrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3gwebtrain/subscriptions","organizations_url":"https://api.github.com/users/3gwebtrain/orgs","repos_url":"https://api.github.com/users/3gwebtrain/repos","events_url":"https://api.github.com/users/3gwebtrain/events{/privacy}","received_events_url":"https://api.github.com/users/3gwebtrain/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-22T05:44:07Z","updated_at":"2015-12-23T21:00:28Z","closed_at":"2015-12-23T21:00:28Z","body":"I am getting `error` while running the gulp. but I am not able to figureout the issue. any one help me please?\r\n\r\nhere is my error :\r\n\r\n```javascript\r\n\r\nD:\\Projects\\angular2>gulp\r\n[10:46:12] Using gulpfile D:\\Projects\\angular2\\gulpfile.js\r\n[10:46:12] Starting 'tsc-compile'...\r\n[10:46:14] Finished 'tsc-compile' after 2.71 s\r\n[10:46:14] Starting 'serve'...\r\n[10:46:14] 'serve' errored after 1.41 ms\r\n[10:46:14] TypeError: Cannot read property 'indexOf' of undefined\r\n    at D:\\Projects\\angular2\\node_modules\\globule\\lib\\globule.js:25:16\r\n    at Array.reduce (native)\r\n    at processPatterns (D:\\Projects\\angular2\\node_modules\\globule\\lib\\globule.js\r\n:24:30)\r\n    at Object.globule.find (D:\\Projects\\angular2\\node_modules\\globule\\lib\\globul\r\ne.js:76:17)\r\n    at Gaze.add (D:\\Projects\\angular2\\node_modules\\gaze\\lib\\gaze.js:174:19)\r\n    at new Gaze (D:\\Projects\\angular2\\node_modules\\gaze\\lib\\gaze.js:74:10)\r\n    at gaze (D:\\Projects\\angular2\\node_modules\\gaze\\lib\\gaze.js:86:10)\r\n    at Object.module.exports [as watch] (D:\\Projects\\angular2\\node_modules\\glob-\r\nwatcher\\index.js:12:17)\r\n    at Gulp.watch (D:\\Projects\\angular2\\node_modules\\gulp\\index.js:35:16)\r\n    at Gulp.<anonymous> (D:\\Projects\\angular2\\gulpfile.js:26:7)\r\n\r\n```\r\n\r\nand here is my `gulpfile.js` :\r\n\r\n```javascript\r\n\r\nvar gulp = require('gulp');\r\nvar sourcemaps\t= require('gulp-sourcemaps');\r\nvar tsc \t= require('gulp-typescript');\r\nvar tscConfig = tsc.createProject(\"tsconfig.json\");\r\nvar gulpConfig = require('./gulp.config')();\r\n\r\nvar browserSync = require('browser-sync');\r\nvar superstatic = require('superstatic');\r\n\r\n\r\ngulp.task('tsc-compile', function () {\r\n\r\n\tvar tsFiles = [ gulpConfig.allTs ]\r\n\t\t\r\n\tvar result = gulp.src(tsFiles)\r\n\t\t\t\t.pipe(sourcemaps.init())\r\n\t\t\t\t.pipe(tsc(tscConfig));\r\n\r\n\treturn result.js\r\n\t\t\t.pipe(sourcemaps.write('.'))\r\n\t\t\t.pipe(gulp.dest(gulpConfig.outputPath));\r\n\r\n});\r\n\r\n\r\ngulp.task('serve', function(){\r\n\r\n\tgulp.watch([tscConfig.allTs], ['tsc-compile'] );//if i comment this no error throws. But nothing watched.\r\n\r\n\tbrowserSync({\r\n\t\tport:3000,\r\n\t\tfile:['index.html', '**/*.js'],\r\n\t\tinjectChanges:true,\r\n\t\tlogFileChanges:false,\r\n\t\tlogLevel:'silent',\r\n\t\tnotify:true,\r\n\t\treloadDelay:0,\r\n\t\tserver:{\r\n\t\t\tmiddleware:superstatic({debug:false})\r\n\t\t}\r\n\t})\r\n\r\n})\r\n\r\ngulp.task('default', ['serve']);\r\n\r\n```"}}