Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLisa Crandall
3,409 PointsAsync Completion Error
When running the "hello" task with Gulp 4.0 I get the following error message:
The following tasks did not complete: hello Did you forget to signal async completion?
To fix this I edited my code to add the following:
gulp.task("hello", function(done) { console.log("Hello!"); done(); });
Now it returns like normal.
It seems like this is something new to Gulp 4.0, and that there are multiple ways to solve it. I found my solution here:
1 Answer
Dragosh Craciun
7,874 PointsAwesome, I had the same problem. Thank you for posting this! Such an easy solution.
"The important part here is the return statement. If you don't return the stream, gulp can't determine when the stream has finished."