sindresorhus / gulp-autoprefixer

Prefix CSS
MIT License
694 stars 50 forks source link

Error: no writecb in Transform class #46

Closed Soviut closed 9 years ago

Soviut commented 9 years ago

I'm getting Error: no writecb in Transform class with gulp-autoprefixer version 3.0.2 on Node 0.10 using the following task:

gulp.task 'styles', ->
    gulp.src "#{src.styles}/**/*.styl"
        .pipe plumber()
        .pipe stylus 
            use: nib()
        .pipe autoprefixer 
            browsers: ['last 2 versions']
        .pipe gulp.dest dest.styles
NikolayFrantsev commented 9 years ago

I have same problem.

sindresorhus commented 9 years ago

Node 0.10 is no longer supported. 3.0.0 was a major release for a reason. Upgrade Node.

bugsancho commented 9 years ago

I'm getting the same error using gulp-autoprefixer(3.0.2) with gulp-less(3.0.3) on node 0.12. Code looks like this:

    return gulp.src(sources.styles)
      .pipe(less())
      .pipe(cssAutoPrefixer({browsers: ['last 2 versions']}))
      .pipe(gulp.dest(config.buildDirectory));
betaorbust commented 9 years ago

@sindresorhus, as there's no changelog, can you put this in the release notes for 3? no writecb in Transform class is an unfortunately common error, and it took a while to track down that it was gulp-autoprefixer throwing it. Putting depreciations or breaking changes between major releases would be AWESOME and would make keeping our packages up to date much easier.

sindresorhus commented 9 years ago

Done, but just to be clear, the breaking change with dropping support for Node.js 0.10 was in autoprefixer, not this plugin. That's where the notice should have been.

wesleypimentel commented 8 years ago

I solved my issue by changing the way how declaring CSS animations with @keyframes in LESS file. The problem was related with the "quotes" around the animation name. If anyone is interested, please read this other comment.

https://github.com/plus3network/gulp-less/issues/207#issuecomment-247531472