nimoc / gulp-book

Gulp 入门指南
1.82k stars 364 forks source link

The "path" argument must be of type string. Received type undefined 有人知道这个报错什么意思吗 #45

Closed leeyboy1992 closed 5 years ago

leeyboy1992 commented 5 years ago

gulp.task('default', function (done) { gulp.watch('js/*.js',function(event){ var paths = watchPath(event, 'js/', 'dist/'); gutil.log(gutil.colors.red(paths)); }) })

执行gulp,命令,然后修改了js之后,就提示 The "path" argument must be of type string. Received type undefined