no writecb in Transform class
- Dominant language
- CoffeeScript
- Stars
- 44
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
I have an issue with compiling slim.
My code looks like this:
``` javascript
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')({scope: ['devDependencies']});
gulp.task('html', function () {
return gulp.src('slim/**/*.slim')
.pipe(plugins.slim())
.pipe(gulp.dest('dist/views'));
});
```
Error goes here:
``` bash
[19:07:24] Starting 'html'...
events.js:141
throw er; // Unhandled 'error' event
^
Error: no writecb in Transform class
at afterTransform (D:\Develop\bootstrap-wdk\node_modules\gulp-slim\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:95:33)
at TransformState.afterTransform (D:\Develop\bootstrap-wdk\node_modules\gulp-slim\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:79:12)
at Socket. (D:\Develop\bootstrap-wdk\node_modules\gulp-slim\index.js:124:18)
at emitNone (events.js:72:20)
at Socket.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:893:12)
at doNTCallback2 (node.js:429:9)
at process._tickCallback (node.js:343:17)
```
I think this was resolved here, but I don't understand it.
https://github.com/sindresorhus/gulp-esnext/issues/8
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the provided gulp task with the slim/**/*.slim input, then inspect gulp-slim/index.js around line 124 and the referenced through2 readable-stream Transform code. Done means the sample pipeline compiles Slim files and completes without the “no writecb in Transform class” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100