dougmartin / gulp-trimlines Goto Github PK
View Code? Open in Web Editor NEWGulp plugin to trim leading and/or trailing spaces per line
Home Page: http://dougmart.in/projects/gulp-trimlines
License: MIT License
Gulp plugin to trim leading and/or trailing spaces per line
Home Page: http://dougmart.in/projects/gulp-trimlines
License: MIT License
While parsing through a ton of files the error above was triggered. Here are the full contents of the error:
/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/gulp-trimlines/index.js:31
file.contents = new Buffer(file.contents.toString(options.encoding).replace(regex, ""));
^
TypeError: Cannot read property 'toString' of null
at DestroyableTransform._transform (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/gulp-trimlines/index.js:31:47)
at DestroyableTransform.Transform._read (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/gulp-trimlines/node_modules/readable-stream/lib/_stream_transform.js:184:10)
at DestroyableTransform.Transform._write (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/gulp-trimlines/node_modules/readable-stream/lib/_stream_transform.js:172:12)
at doWrite (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/gulp-trimlines/node_modules/readable-stream/lib/_stream_writable.js:237:10)
at writeOrBuffer (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/gulp-trimlines/node_modules/readable-stream/lib/_stream_writable.js:227:5)
at DestroyableTransform.Writable.write (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/gulp-trimlines/node_modules/readable-stream/lib/_stream_writable.js:194:11)
at DestroyableTransform.ondata (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:546:20)
at emitOne (events.js:96:13)
at DestroyableTransform.emit (events.js:188:7)
at readableAddChunk (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:217:18)
I know this is technically an error thrown by the readable-stream module in through2, however it does originate with gulp-trimlines. I found this error that may be related: rvagg/through2#1
events.js:160
throw er; // Unhandled 'error' event
^
Error: no writecb in Transform class
at afterTransform (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:74:40)
at TransformState.afterTransform (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:58:12)
at DestroyableTransform.transform [as _transform] (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/gulp-tabify/index.js:58:9)
at DestroyableTransform.Transform._read (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:159:10)
at DestroyableTransform.Transform._write (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:147:83)
at doWrite (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:347:64)
at writeOrBuffer (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:336:5)
at DestroyableTransform.Writable.write (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:274:11)
at write (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/gulp-trimlines/node_modules/readable-stream/lib/_stream_readable.js:623:24)
at flow (/Users/benjamin/Work/Awesome Motive/Optin Monster/git/optin-monster-app-kinship/node_modules/gulp-trimlines/node_modules/readable-stream/lib/_stream_readable.js:632:7)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.