stephenlacy / gulp-stylus

Stylus plugin for gulp
MIT License
223 stars 60 forks source link

Error: no writecb in Transform class #127

Closed voodee closed 9 years ago

voodee commented 9 years ago

I use gulp-starter with bootstrap-stylus

My task:

// include the required packages.
var gulp         = require('gulp'),
    browserSync  = require('browser-sync'),
    stylus       = require('gulp-stylus'),
    handleErrors = require('../util/handleErrors'),
    myth         = require('gulp-myth'),
    nib          = require('nib'),
    sourcemaps   = require('gulp-sourcemaps'),
    config       = require('../config').stylus,
    bootstrap = require('bootstrap-styl');

gulp.task('stylus', function () {
  return gulp.src(config.src)
    .pipe(sourcemaps.init())
    .pipe(stylus({
      use: [nib(), bootstrap()],
      compress: true
    }))
    .on('error', handleErrors)
    .pipe(sourcemaps.write())
    .pipe(myth())
    .pipe(gulp.dest(config.dest))
    .pipe(browserSync.reload({stream:true}));
});

I have this error:

gulp-notify: [Compile Error] Error: no writecb in Transform class

I found a similar error https://github.com/sindresorhus/gulp-esnext/issues/8 And the line that causes the error (index.js):

[46]         return cb(new gutil.PluginError(PLUGIN_NAME, err));

How to fix it?

stephenlacy commented 9 years ago

gulp-notify: [Compile Error] Error: no writecb in Transform class

Not this project