You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to upgrade from Gulp 4 to Gulp 5 and I'm getting Error: Writable stream closed prematurely.
Here's the relevant function:
const download = require('gulp-download2');
/**
* Purgecss can only process downloaded files, not URLs.
*/
function downloadPurgeCssPages () {
console.log('paths.pageDownloads', paths.pageDownloads);
return gulp.src([paths.pageDownloads])
.pipe(download(['https://example.com/home']))
.pipe(rename(function (path) {
console.log('renaming', path)
path.extname = '.html';
}))
.pipe(gulp.dest('/var/www/html/theme_tools/purgecss_page_downloads'))
}
In the console, I see "renaming" and the path is correct, but then I get the Error: Writable stream closed prematurely error. I don't really understand what this error means.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to upgrade from Gulp 4 to Gulp 5 and I'm getting
Error: Writable stream closed prematurely
.Here's the relevant function:
In the console, I see "renaming" and the path is correct, but then I get the
Error: Writable stream closed prematurely
error. I don't really understand what this error means.This comment in the gulp issue queue states that streams using {end: false} are unsupported, but I don't understand what that means, either.
Is gulp-download-2 incompatible with gulp 5?
Beta Was this translation helpful? Give feedback.
All reactions