V
V
vrpk342019-07-03 22:23:58
gulp.js
vrpk34, 2019-07-03 22:23:58

Has anyone encountered this error and how to solve it?

PS D:\sass> gulp serve
[23:03:07] Using gulpfile D:\sass\gulpfile.js
[23:03:07] Starting 'serve'...
[23:03:07] 'serve' errored after 15 ms
[23:03:07] Error: watching scss/**/*.scss: watch task has to be a function (optionally generated by using gulp.parallel or gulp.series)
at Gulp.watch (D:\ sass\node_modules\gulp\index.js:28:11)
at D:\sass\gulpfile.js:31:10
at taskWrapper (D:\sass\node_modules\undertaker\lib\set-task.js:13:15 )
at bound (domain.js:402:14)
at runBound (domain.js:415:12)
at asyncRunner (D:\sass\node_modules\async-done\index.js:55:18)
at process._tickCallback ( internal/process/next_tick.js:61:11)
PS D:\sass>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Skibin, 2019-07-03
@vrpk34

Have you read here? https://www.browsersync.io/docs/gulp
Your return value is incorrect for pipe. Read for gulp 4.xx

V
vrpk34, 2019-07-04
@vrpk34

found nothing page 404
If you are using gulp 4.xx now, then you can follow this documentation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question