Javascript 连接文件后,控制台给出:uncaughttypeerror

Javascript 连接文件后,控制台给出:uncaughttypeerror,javascript,jquery,gulp,Javascript,Jquery,Gulp,我的gulpfile中有一个任务,它以某种顺序连接所有js文件。但在连接并重新加载页面后,console写道: Uncaught TypeError: e.indexOf is not a function 我的任务是: gulp.task('scripts', function() { return gulp.src([ 'source/components/jquery/dist/jquery.min.js', 'source/components/jquery-ui/jq

我的gulpfile中有一个任务,它以某种顺序连接所有js文件。但在连接并重新加载页面后,console写道:

Uncaught TypeError: e.indexOf is not a function
我的任务是:

gulp.task('scripts', function() {
return gulp.src([
    'source/components/jquery/dist/jquery.min.js',
    'source/components/jquery-ui/jquery-ui.min.js',
    'source/components/easing/easing-min.js',
    'source/components/hoverintent/dist/hoverintent.min.js',
    'source/components/bootstrap/dist/js/bootstrap.min.js',
    'source/components/select2/dist/js/select2.min.js',
    'source/components/jquery.uniform/src/js/jquery.uniform.js',
    'source/components/slick-carousel/slick/slick.min.js',
    'source/components/magnific-popup/dist/jquery.magnific-popup.min.js',
    'source/components/jquery-cacheimage/jquery.cacheimage.js',
    'source/components/moment/min/moment.min.js',
    'source/components/fullcalendar/dist/fullcalendar.min.js',
    'source/scripts/main.js'
  ])
  .pipe(plumber())
  .pipe(concat('main.js'))
  .pipe(uglify())
  .pipe(gulp.dest('scripts/js'))
  .pipe(browserSync.reload({ stream: true }));
});

当你不丑的时候,它能工作吗?我试过了,但不起作用。在浏览器或节点控制台中哪里有错误..在浏览器中有错误