K
K
kryamk2021-10-04 12:57:54
JavaScript
kryamk, 2021-10-04 12:57:54

Why did you start throwing out gulp after launch?

Suddenly began to throw out with this error. Apparently the matter is in gulp-tinypng-compress, because if it is cut out from gulpfile.js, then everything works fine.
Tried changing gulp-tinypng-compress key. Demolished and reinstalled node_modules.
Such a problem on other sites of other hostings with this assembly
node version v8.12.0, ancient, of course, but it worked. And now suddenly all the sites flew

[12:43:09] Starting 'tinypng'...
[12:43:09] Finished 'tinypng' after 2.14 ms
buffer.js:183
    throw new TypeError(kFromErrorMsg);
    ^

TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
    at Function.Buffer.from (buffer.js:183:11)
    at new Buffer (buffer.js:158:17)
    at Request._callback (/public_html/wp-content/themes/theme/node_modules/gulp-tinypng-compress/index.js:212:29)
    at self.callback (/public_html/wp-content/themes/theme/node_modules/request/request.js:122:22)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at ClientRequest.self.clientErrorHandler (/public_html/wp-content/themes/theme/node_modules/request/request.js:231:10)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at TLSSocket.socketErrorListener (_http_client.js:401:9)

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