V
V
Vladislav Kravchenko2020-04-24 00:57:52
css
Vladislav Kravchenko, 2020-04-24 00:57:52

gulp error. Did you forget to signal async competition?

Hello, such an error flies, and everything worked was ok, moved away from the computer, restarted the galp and such a game. Despite the fact that I did not change anything, there are a lot of this problem in the net, their solutions will not help. Mb someone tell me? Thanks

[00:48:25] Using gulpfile ~\Desktop\gulpfile.js
[00:48:25] Starting 'default'...
[00:48:25] Starting 'watchFiles'...
[00:48: 25] Starting 'browserSync'...
[00:48:25] Starting 'clean'...
[00:48:25] Finished 'clean' after 43 ms
[00:48:25] Starting 'html'.. .
[00:48:25] Starting 'css'...
[00:48:25] Starting 'js'...
[00:48:25] Starting 'images'...
[00:48:25] 'js' errored after 201 ms
[00:48:25] TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at Function.from (buffer.js:327:9)
at new Buffer (buffer.js:283:17)
at C:\Users\KRAVZ\Desktop\node_modules\gulp-rigger\index.js:20:29
at Rigger. (C:\Users\KRAVZ\Desktop\node_modules\rigger\index.js:719:9)
at Rigger.emit (events.js:310:20)
at Rigger.EventEmitter.emit (domain.js:482:12)
at C:\Users\KRAVZ\Desktop\node_modules\rigger\index.js:252:16
at C:\Users\KRAVZ\Desktop\node_modules\rigger\node_modules\async\lib\async.js:232:13
at C:\Users\KRAVZ\Desktop\node_modules\rigger\node_modules\async\lib\async.js:113:21
at C:\Users\KRAVZ\Desktop\node_modules\rigger\node_modules\async\lib\async.js :24:16
[00:48:25] 'default' errored after 250 ms
[00:48:25] The following tasks did not complete: watchFiles, browserSync, html, css, images
[00:48:25] Did you forget to signal async completion?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2020-04-24
Matytsyn @ArsenyMatytsyn

When you create a task, you must either return it through returnthe final execution, or through a call to the passed function. In your task browserSync, for example, there is a passed function done, but you do not return either it or returnthe result of the execution.
This is the first thing I saw, maybe there are still such errors. To avoid them, read the gulp documentation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question