A
A
Artemy Sagutdinov2022-01-15 14:56:30
gulp.js
Artemy Sagutdinov, 2022-01-15 14:56:30

Gulp not working?

I'm trying to run the task, but it gives me this error:

PS C:\Work> gulp html:build
[16:53:50] Using gulpfile C:\Work\gulpfile.js
[16:53:50] Starting 'html:build'...
[16:53:50] Finished 'html:build' after 15 ms
node:buffer:322
  throw new ERR_INVALID_ARG_TYPE(
  ^

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
    at new NodeError (node:internal/errors:371:5)
    at Function.from (node:buffer:322:9)
    at new Buffer (node:buffer:278:17)
    at C:\Work\node_modules\gulp-rigger\index.js:20:29
    at Rigger.<anonymous> (C:\Work\node_modules\rigger\index.js:719:9)
    at Rigger.emit (node:events:390:28)
    at Rigger.emit (node:domain:475:12)
    at C:\Work\node_modules\rigger\index.js:252:16
    at C:\Work\node_modules\rigger\node_modules\async\lib\async.js:232:13
    at C:\Work\node_modules\rigger\node_modules\async\lib\async.js:113:21 {
  code: 'ERR_INVALID_ARG_TYPE'
}

Googled it, didn't find anything. Here is the code of the task itself:
gulp.task('html:build',async function () {
        gulp.src(path.src.html) //Выберем файлы по нужному пути
            .pipe(rigger()) //Прогоним через rigger
            .pipe(gulp.dest(path.build.html)) //Выплюнем их в папку build
            .pipe(reload({stream: true})); //И перезагрузим наш сервер для обновлений
    });

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2022-01-15
@hottabxp

The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined

Google translate:
The first argument must be of type string, or an instance of Buffer, ArrayBuffer, or Array, or an array-like object. Received indefinite

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question