Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to understand a Gulp build error - Emitting error involving zlib.js & Gzip

Tags:

node.js

gulp

Has anyone seen this error? I cannot understand the origin of the error. Searching for an answer has been fruitless. To give some context, I was merging changes from another branch via SVN, which probably mangled the merge, but I still can't figure out what went wrong within the logic. Thanks in advance.

zlib.js:166
 callback(null, buf);
 ^
TypeError: object is not a function
 at Gzip.onEnd (zlib.js:166:5)
 at Gzip.EventEmitter.emit (events.js:117:20)
 at _stream_readable.js:910:16
 at process._tickCallback (node.js:415:13)
like image 517
Con Antonakos Avatar asked Nov 10 '22 11:11

Con Antonakos


1 Answers

Ok, I figured it out by just commenting out some logic. Unfortunately, it was a conflict with the gulp-size module. I was passing in the an object as an argument to gulp-size as the following { showFiles: true, gzip: true}. I don't know why it was causing issues now considering I had no conflicts running this module in my Gulp task in the past. Thanks again, @JeromeWAGNER.

like image 120
Con Antonakos Avatar answered Nov 14 '22 21:11

Con Antonakos