D
D
Dmitry2016-01-27 20:12:40
HTML
Dmitry, 2016-01-27 20:12:40

Why is there an error when changing gulp.src in gulp-rigger?

this is how it works

gulp.task('html', function(){
  return gulp.src('src/*.html')
    .pipe(rigger())
    .pipe(gulp.dest(path.build.html))
    .pipe(connect.reload());
});

but if I change the source path
gulp.task('html', function(){
  return gulp.src('src/oborudovanie/*.html')
    .pipe(rigger())
    .pipe(gulp.dest(path.build.html))
    .pipe(connect.reload());
});

throws an error
buffer.js:67
    throw new TypeError('must start with number, buffer, array or string');
          ^
TypeError: must start with number, buffer, array or string
    at new Buffer (buffer.js:67:11)
    at d:\html\working\poli services\node_modules\gulp-rigger\index.js:20:29
    at Rigger.<anonymous> (d:\html\working\poli services\node_modules\gulp-rigger\node_modules\rigger\index.js:719:9)
    at Rigger.emit (events.js:107:17)
    at d:\html\working\poli services\node_modules\gulp-rigger\node_modules\rigger\index.js:252:16
    at d:\html\working\poli services\node_modules\gulp-rigger\node_modules\rigger\node_modules\async\lib\async.js:232:13
    at d:\html\working\poli services\node_modules\gulp-rigger\node_modules\rigger\node_modules\async\lib\async.js:113:21
    at d:\html\working\poli services\node_modules\gulp-rigger\node_modules\rigger\node_modules\async\lib\async.js:24:16
    at d:\html\working\poli services\node_modules\gulp-rigger\node_modules\rigger\node_modules\async\lib\async.js:229:17
    at d:\html\working\poli services\node_modules\gulp-rigger\node_modules\rigger\index.js:391:21

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2016-01-27
@sim3x

Change permissions so that gulp can access the directory

D
Dmitry, 2016-01-27
@DP-Studio

Option 2:
1) Left permissions on the folder -))
2) An error occurs recursive calls, carefully look at your templates, file names and paths in them ...
For example, some included file is trying to include something else ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question