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

del.sync(...).then is not a function #16

Open
GaziTaufiqIslam opened this issue Nov 12, 2018 · 1 comment
Open

del.sync(...).then is not a function #16

GaziTaufiqIslam opened this issue Nov 12, 2018 · 1 comment

Comments

@GaziTaufiqIslam
Copy link

When I run gulp clean it gives me the following error:

TypeError: del.sync(...).then is not a function at Gulp.<anonymous> (F:\UEM\dev\ureckon19-website - Copy\gulpfile.js:85:27) at module.exports (F:\UEM\dev\ureckon19-website - Copy\node_modules\orchestrator\lib\runTask.js:34:7) at Gulp.Orchestrator._runTask (F:\UEM\dev\ureckon19-website - Copy\node_modules\orchestrator\index.js:273:3) at Gulp.Orchestrator._runStep (F:\UEM\dev\ureckon19-website - Copy\node_modules\orchestrator\index.js:214:10) at Gulp.Orchestrator.start (F:\UEM\dev\ureckon19-website - Copy\node_modules\orchestrator\index.js:134:8) at C:\Users\farhana\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:129:20 at process._tickCallback (internal/process/next_tick.js:61:11) at Function.Module.runMain (internal/modules/cjs/loader.js:744:11) at startup (internal/bootstrap/node.js:285:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)

Although it returns an error yet the dist folder is deleted.

@EnzoBatista
Copy link

EnzoBatista commented Oct 10, 2020

@GaziTaufiqIslam have you already solved it?
You might use a callback function something like that:

gulp.task('clean:dist', function(done) {
del.sync('dist');
done();
})

gulp.task('build', function (done) {
runSequence(
'clean:dist',
'sass', 'useref', 'images', 'fonts'
), done();
})

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

2 participants