Giter Site home page Giter Site logo

gulp-trimlines's People

Contributors

dougmartin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gulp-trimlines's Issues

TypeError: Cannot read property 'toString' of null

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)

Error: no writecb in Transform class

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.