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 trialRyan Doran
7,815 PointsAssertionError [ERR_ASSERTION]: Task function must be specified at Gulp.set [as _setTask]
Gulp 4 requires the Gulp function to be specified. The video says to use:
gulp.task('build', ['concatScripts', 'minifyScripts', 'compileSass']);
but for Gulp 4 (which is what most have at this time), you must use the gulp.series before the array of tasks to perform the synchronized build task.
gulp.task('build', gulp.series('concatScripts', 'minifyScripts', 'compileSass'));
hopefully this helps someone.