vinyl-fs: Passing gulp.src() to gulp.pipe() is erroring
My gulp task:
gulp.task('build', ['sass'], function (done) {
var child = spawn('./node_modules/.bin/r.js', ['-o', 'app/assets/js/app.build.js'], {
stdio: 'inherit'
});
child.on('close', function () {
gulp.src('app/assets/build/js/main.js')
.pipe(gulp.dest('app/assets/build'))
.pipe(gulp.src('app/assets/build/js', {read: false}))
.pipe(plugins.clean())
.on('end', done);
});
});
My error:
stream.js:94
throw er; // Unhandled stream error in pipe.
^
Error: write after end
at writeAfterEnd (/Users/callumacrae/Sites/finance-finder/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:145:12)
at Transform.Writable.write (/Users/callumacrae/Sites/finance-finder/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:193:5)
at Stream.ondata (stream.js:51:26)
at Stream.EventEmitter.emit (events.js:95:17)
at queueData (/Users/callumacrae/Sites/finance-finder/node_modules/gulp/node_modules/vinyl-fs/node_modules/map-stream/index.js:43:21)
at next (/Users/callumacrae/Sites/finance-finder/node_modules/gulp/node_modules/vinyl-fs/node_modules/map-stream/index.js:71:7)
at /Users/callumacrae/Sites/finance-finder/node_modules/gulp/node_modules/vinyl-fs/node_modules/map-stream/index.js:85:7
at done (/Users/callumacrae/Sites/finance-finder/node_modules/gulp/node_modules/vinyl-fs/lib/dest/writeContents/index.js:9:5)
at /Users/callumacrae/Sites/finance-finder/node_modules/gulp/node_modules/vinyl-fs/node_modules/graceful-fs/graceful-fs.js:102:5
at Object.oncomplete (evalmachine.<anonymous>:107:15)
~/Sites/finance-finder rc-2* 14s
❯ gulp --version
[17:57:19] CLI version 3.8.0
[17:57:19] Local version 3.8.0
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 39 (10 by maintainers)
Commits related to this issue
- removing gzip and versionize until https://github.com/wearefractal/vinyl-fs/issues/25 is fixed — committed to xpepermint/assets-tasks by xpepermint 10 years ago
- Add `passthrough` option, fixes #25, fixes gulpjs/gulp#840 — committed to UltCombo/vinyl-fs by UltCombo 9 years ago
- Merge pull request #55 from UltCombo/passthrough Add `passthrough` option, fixes #25, fixes gulpjs/gulp#840 — committed to gulpjs/vinyl-fs by deleted user 9 years ago
- fix that potentially closes #25 — committed to gulpjs/vinyl-fs by deleted user 10 years ago
- Add `passthrough` option, fixes #25, fixes gulpjs/gulp#840 — committed to gulpjs/vinyl-fs by UltCombo 9 years ago
- fix that potentially closes #25 — committed to gulpjs/vinyl-fs by yocontra 10 years ago
- Add `passthrough` option, fixes #25, fixes gulpjs/gulp#840 — committed to gulpjs/vinyl-fs by UltCombo 9 years ago
- fix that potentially closes #25 — committed to gulpjs/vinyl-fs by yocontra 10 years ago
- Add `passthrough` option, fixes #25, fixes gulpjs/gulp#840 — committed to gulpjs/vinyl-fs by UltCombo 9 years ago
- fix that potentially closes #25 — committed to gulpjs/vinyl-fs by yocontra 10 years ago
- Add `passthrough` option, fixes #25, fixes gulpjs/gulp#840 — committed to gulpjs/vinyl-fs by UltCombo 9 years ago
- fix that potentially closes #25 — committed to gulpjs/vinyl-fs by yocontra 10 years ago
- Add `passthrough` option, fixes #25, fixes gulpjs/gulp#840 — committed to gulpjs/vinyl-fs by UltCombo 9 years ago
- fix that potentially closes #25 — committed to gulpjs/vinyl-fs by yocontra 10 years ago
- Add `passthrough` option, fixes #25, fixes gulpjs/gulp#840 — committed to gulpjs/vinyl-fs by UltCombo 9 years ago
- fix that potentially closes #25 — committed to gulpjs/vinyl-fs by yocontra 10 years ago
- Add `passthrough` option, fixes #25, fixes gulpjs/gulp#840 — committed to gulpjs/vinyl-fs by UltCombo 9 years ago
- fix that potentially closes #25 — committed to gulpjs/vinyl-fs by yocontra 10 years ago
- Add `passthrough` option, fixes #25, fixes gulpjs/gulp#840 — committed to gulpjs/vinyl-fs by UltCombo 9 years ago
- fix that potentially closes #25 — committed to gulpjs/vinyl-fs by yocontra 10 years ago
Most upvoted comments
+8
hoho on Sep 29, 2014