Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERR_INVALID_CALLBACK #97

Open
ghost opened this issue Dec 12, 2018 · 1 comment
Open

ERR_INVALID_CALLBACK #97

ghost opened this issue Dec 12, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 12, 2018

I try reinstall node and gulp, but still have this issue :/

$ node -v
v10.13.0
$ npm -v
6.5.0
$ gulp -v
CLI version 2.0.1
Local version 4.0.0

NODE_PATH
C:\Users\admin\AppData\Roaming\npm

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at makeCallback (fs.js:137:11)
at Object.unlink (fs.js:936:14)
at requireGulp (C:\Users\admin\AppData\Roaming\Sublime Text 3\Packages\Gulp\write_tasks_to_cache.js:30:12)
at Object. (C:\Users\admin\AppData\Roaming\Sublime Text 3\Packages\Gulp\write_tasks_to_cache.js:83:12)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)

@ghost
Copy link
Author

ghost commented Dec 13, 2018

problem was new task execution:
read more

old way:
gulp.task('autoprefixer', ['compress-css'], function() {

new way:
gulp.task('autoprefixer', gulp.series('compress-css'), () => {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants