Error: write after end
See original GitHub issueI wrote a gulp task using this article:
var browserified = transform(function(filename) {
var b = browserify(filename);
b.transform('brfs');
return b.bundle();
});
return gulp.src(src)
.pipe(browserified)
.pipe(uglify())
.pipe(gulp.dest(dest));
When I run this, I get an error: Error: write after end at writeAfterEnd (/www/my-project/node_modules/browserify/node_modules/labeled-stream-splicer/node_modules/stream-splicer/node_modules/readable-stream/lib/_stream_writable.js:161:12)
If I comment out the b.transform('brfs');
, everything works fine. Does anyone have any insight as to why this is happening?
Thanks!
Issue Analytics
- State:
- Created 9 years ago
- Comments:11
Top Results From Across the Web
Write After End error in node.js webserver - Stack Overflow
I am struggling with my node.js hobby project due to a "write after end" Error. I have a created a node.js webserver that...
Read more >write after end · Issue #928 · tulios/kafkajs - Connection error
After the update, we noticed that a new error is logged in our production server: Message: Connection error: write after end Stack: Error ......
Read more >Server crashes with even simplest code. : r/node - Reddit
this is error events.js:352 throw er; // Unhandled 'error' event Error [ERR_STREAM_WRITE_AFTER_END]: write after end at writeAfterEnd…
Read more >Error: write after end (Example) | Treehouse Community
Node is asynchronous, which means that functions happen at the same time. Write after end means that something is being written after the...
Read more >Object Storage upload: [ERR_STREAM_WRITE_AFTER_END]
Hey guys! I use aws-sdk for NodeJS for Linode Object Storage but I get the following error `[ERR_STREAM_WRITE_AFTER_END]: write after end` when uploading ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
b.bundle()
returns a readable stream, not a transform stream. Many of the gulp guides are mistaken on this point but are slowly being fixed. Here’s a good fix by @terinjokes for gulp users: https://github.com/substack/node-browserify/issues/1191#issuecomment-89302289I’ve been able to use gulp-brfs and, somehow, fills my needs.