Answer the question
In order to leave comments, you need to log in
Gulp throws an error, how to fix?
Gives an error message. Searched for an hour. Can't find a fix. Maybe I'm passing by. How to fix ? And what is the essence of the error?
PS D:\Projects\sf> gulp scss
[14:56:57] Using gulpfile D:\Projects\sf\gulpfile.js
[14:56:57] Task never defined: scss
[14:56:57] To list available tasks, try running: gulp --tasks
Answer the question
In order to leave comments, you need to log in
Here is an example of how the gulp file should look like
https://gist.github.com/jeromecoupe/0b807b0c105064...
Do you have a chain of calls and exports of the necessary task in your code? As in the example below:
// define complex tasks
const js = gulp.series(scriptsLint, scripts);
const build = gulp.series(clean, gulp.parallel(css, images, jekyll, js));
const watch = gulp.parallel(watchFiles, browserSync);
// export tasks
exports.images = images;
exports.css = css;
exports.js = js;
exports.jekyll = jekyll;
exports.clean = clean;
exports.build = build;
exports.watch = watch;
exports.default = build;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question