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 #207

Closed
Rudloff opened this issue Dec 20, 2015 · 13 comments
Closed

Error: no writecb in Transform class #207

Rudloff opened this issue Dec 20, 2015 · 13 comments

Comments

@Rudloff
Copy link

Rudloff commented Dec 20, 2015

I get this error when running gulp-less with node 0.10 (the version packaged in Debian stable):

Potentially unhandled rejection [2] Error: no writecb in Transform class
    at afterTransform (/home/pierre/www/KNACSS/node_modules/gulp-less/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:75:33)
    at TransformState.afterTransform (/home/pierre/www/KNACSS/node_modules/gulp-less/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:59:12)
    at /home/pierre/www/KNACSS/node_modules/gulp-less/index.js:58:14
    at tryCatchReject (/home/pierre/www/KNACSS/node_modules/gulp-less/node_modules/accord/node_modules/when/lib/makePromise.js:845:30)
    at runContinuation1 (/home/pierre/www/KNACSS/node_modules/gulp-less/node_modules/accord/node_modules/when/lib/makePromise.js:804:4)
    at Rejected.when (/home/pierre/www/KNACSS/node_modules/gulp-less/node_modules/accord/node_modules/when/lib/makePromise.js:625:4)
    at Pending.run (/home/pierre/www/KNACSS/node_modules/gulp-less/node_modules/accord/node_modules/when/lib/makePromise.js:483:13)
    at Scheduler._drain (/home/pierre/www/KNACSS/node_modules/gulp-less/node_modules/accord/node_modules/when/lib/Scheduler.js:62:19)
    at Scheduler.drain (/home/pierre/www/KNACSS/node_modules/gulp-less/node_modules/accord/node_modules/when/lib/Scheduler.js:27:9)
    at process._tickCallback (node.js:419:13)
@yocontra
Copy link
Member

Can you use the latest version of node and run npm update?

@Rudloff
Copy link
Author

Rudloff commented Dec 20, 2015

I confirm it works correctly if I install node 0.12 from NodeSource, but I would prefer to stick with the version packaged in the stable repositories.

@yocontra
Copy link
Member

@Rudloff Node 4.0 is the latest stable (and LTS) release - 0.10 is over a year old and no longer considered stable

@sakshigandhi
Copy link

I am facing the same issue, and I cannot upgrade from v0.10 to v0.12

@ArjanKw
Copy link

ArjanKw commented Jan 2, 2016

Received the same error with Node v0.12.33 trying to compile less to css. Updated to latest version node/npm to no avail. Cleaned cache (npm cache clean -f). Did npm update as suggested. Restarted application.

$ node -v
v4.2.4
$ npm -v
3.5.2

$ npm list --local-cache-only
-> gulp@3.9.0
-> gulp-util@3.0.7
-> gulp-less@3.0.5

[23:33:57] Using gulpfile c:\wamp\www\gulpfile.js
[23:33:57] Starting 'default'...
[23:33:57] Finished 'default' after 13 ms
[23:34:01] Starting 'less'...
[23:34:01] Finished 'less' after 8.87 ms
Potentially unhandled rejection [2] Error: no writecb in Transform class
at afterTransform (c:\wamp\www\node_modules\gulp-less\node_modules\through2\node_modules\readable-stream\lib_stream_transform.js:75:33)
at TransformState.afterTransform (c:\wamp\www\node_modules\gulp-less\node_modules\through2\node_modules\readable-stream\lib_stream_transform.js:59:12)
at c:\wamp\www\node_modules\gulp-less\index.js:58:14
at tryCatchReject (c:\wamp\www\node_modules\gulp-less\node_modules\accord\node_modules\when\lib\makePromise.js:845:30)
at runContinuation1 (c:\wamp\www\node_modules\gulp-less\node_modules\accord\node_modules\when\lib\makePromise.js:804:4)
at Rejected.when (c:\wamp\www\node_modules\gulp-less\node_modules\accord\node_modules\when\lib\makePromise.js:625:4)
at Pending.run (c:\wamp\www\node_modules\gulp-less\node_modules\accord\node_modules\when\lib\makePromise.js:483:13)
at Scheduler._drain (c:\wamp\www\node_modules\gulp-less\node_modules\accord\node_modules\when\lib\Scheduler.js:62:19)
at Scheduler.drain (c:\wamp\www\node_modules\gulp-less\node_modules\accord\node_modules\when\lib\Scheduler.js:27:9)
at doNTCallback0 (node.js:419:9)

@ArjanKw
Copy link

ArjanKw commented Jan 4, 2016

Tried the same today and it worked, have no clue what has changed.

@sam2x
Copy link

sam2x commented Mar 9, 2016

Got the same error, tried all advices (cleaning cache, updating), and it's not working, still got this error :

 Potentially unhandled rejection [2] Error: no writecb in Transform class

My versions :

 $ node -v
 v5.4.1
 $ npm -v
 3.3.12
 $ gulp -v
 [16:14:22] CLI version 3.9.0
 [16:14:22] Local version 3.9.1

gulp-less@3.0.5

Please help, would listen any comments (it's an urgent task, since it breaks my whole dev process....)

@sam2x
Copy link

sam2x commented Mar 9, 2016

Tried with all versions of gulp-less > 3.0.0 and the master version. Not working.

@sam2x
Copy link

sam2x commented Mar 9, 2016

Downgrading gulp-less to "^1.3.2" worked -_-

@Saturate
Copy link

Maybe this node engines should be changed in the package.json to reflect what version is working/needed?

https://github.com/plus3network/gulp-less/blob/master/package.json#L13-L15
https://docs.npmjs.com/files/package.json#engines

@licx
Copy link

licx commented Jun 8, 2016

Any news on this issue?
I'm experiencing it with node 4.4.5

@wesleypimentel
Copy link

wesleypimentel commented Sep 16, 2016

I solved my problem with "no writecb in Transform class" in this way:

I searched file by file for possible syntax errors or something.
I noticed that was related with a imported file with some mixins and animations.
Then checked the animation keyframes:

@Keyframes "foo" { ... ("with quotes")

I decided remove the quotes, like this:

@Keyframes foo { ... (without quotes)

After this adjustment in all keyframes, the gulp-less run perfectly, no errors on task.

@stephenlacy
Copy link
Contributor

@wesleypimentel does wrapping the plugin with gulpplumber assist in showing the error?

Since the original issue is about a year old I'll elect to close it.

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

9 participants