N
N
Nazar Atamanchuk2021-07-08 15:20:45
JavaScript
Nazar Atamanchuk, 2021-07-08 15:20:45

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 60e6ed8f3580e043797121.png60e6ed95a96ca241242306.pngtasks, try running: gulp --tasks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
approximate solution, 2021-07-08
@approximate_solution

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 question

Ask a Question

731 491 924 answers to any question