'gulp 3 upgrade to gulp 4 tasks did not complete: prod, compile
I am in the process of upgrading Gulp from version 3 to 4 . I am getting this error about this task did not complete. Is there anything I need to change this in the compile task for version 4 of gulp? I dont think its correct to add an async to the async gulp.series "clean" task.
console
[09:33:16] Using gulpfile C:\WebProjects\ITF\ITF.Web\Gulpfile.js
[09:33:16] Starting 'prod'...
[09:33:16] Starting 'compile'...
[09:33:16] The following tasks did not complete: prod, compile
[09:33:16] Did you forget to signal async completion?
Process terminated with code 1.
gulp
gulp.task("prod", gulp.series(
"compile",
"bundle",
"min",
));
gulp.task('clean', function () {
return gulp.src(paths.dist, { read: false }).pipe(rimraf({ force: true }));
});
gulp.task("compile", () => gulp.series("clean", function () {
return gulp.src("./App/**/*.ts")
.pipe(inlineNg2Template({
base: "/", // Angular2 application base folder
target: "es6", // Can swap to es5
indent: 2, // Indentation (spaces)
useRelativePaths: false, // Use components relative assset paths
removeLineBreaks: false, // Content will be included as one line
templateExtension: ".html", // Update according to your file extension
templateFunction: false // If using a function instead of a string for `templateUrl`, pass a reference to that function here
}))
.pipe(typescript(tsProject))
.pipe(ignore("References.js"))
.pipe(gulp.dest("dist/App"))
.on("finish", function () {
console.log("Results finish");
console.log(gulp.src);
})
.on('error', function (err) { console.log(err.message); });
}));
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
