Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: no writecb in Transform class #46

Closed
Soviut opened this issue Sep 28, 2015 · 6 comments
Closed

Error: no writecb in Transform class #46

Soviut opened this issue Sep 28, 2015 · 6 comments

Comments

@Soviut
Copy link

Soviut commented Sep 28, 2015

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
Copy link

I have same problem.

@sindresorhus
Copy link
Owner

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

@bugsancho
Copy link

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
Copy link

@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
Copy link
Owner

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.

ivoputzer added a commit to ivoputzer/gulp-autoprefixer that referenced this issue Nov 12, 2015
ivoputzer added a commit to ivoputzer/gulp-autoprefixer that referenced this issue Nov 12, 2015
@wesleypimentel
Copy link

wesleypimentel commented Sep 16, 2016

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.

gulp-community/gulp-less#207 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants