S
S
sinneren2020-12-27 11:28:06
Building projects
sinneren, 2020-12-27 11:28:06

How to find out exactly what gulp-rigger stumbled on?

When you start compiling statics, a task is loaded to build js that uses the rigger. When it comes to .pipe(rigger()), an error occurs because in some js collector file, the path to the file is specified incorrectly, or the file does not exist at all.
The error is the following:

buffer.js:207
    throw new ERR_INVALID_ARG_TYPE(
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
    at Function.from (buffer.js:207:11)
    at new Buffer (buffer.js:182:17)
    at /usr/lib/node_modules/gulp-rigger/index.js:20:29
    at Rigger.<anonymous> (/usr/lib/node_modules/rigger/index.js:719:9)
    at Rigger.emit (events.js:182:13)
    at /usr/lib/node_modules/rigger/index.js:252:16
    at /usr/lib/node_modules/async/lib/async.js:232:13
    at /usr/lib/node_modules/async/lib/async.js:113:21
    at /usr/lib/node_modules/async/lib/async.js:24:16
    at /usr/lib/node_modules/async/lib/async.js:229:17


But she is not informative at all. Is it possible to find out on which line the rigger fell off?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question