Everytime I Get An Assertion Error While Running Gulp In Command Line
I'm trying to run the command below but unfortunately I run into an error. C:\Users\usver\Desktop\git test\git\Bootstrap4\conFusion>gulp I got assertion error after running the
Solution 1:
You are using gulp3 syntax in a gulp4 file.
Search your error message Task function must be specified
and you will get lots of hits.
Change these lines:
gulp.task('sass:watch',function(){
// gulp.watch('./css/*.scss',['sass']);
gulp.watch('./css/*.scss', gulp.series('sass'));
// gulp.watch('./css/*.scss', 'sass'); // should work too
});
and
// gulp.task('default',['browser-sync'],function(){
//gulp.start('sass:watch');
// });
to
gulp.task('default', gulp.series('browser-sync', 'sass:watch'));
It looks like you were working off of an old gulp3 tutorial but look for some migration guides from gulp3 to gulp4 instead.
Post a Comment for "Everytime I Get An Assertion Error While Running Gulp In Command Line"