'DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResourc

gulp-notify: [HTML] Error: Callback called multiple times (node:24464) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead. (Triggered by calling processImmediate on process.) (Use node --trace-deprecation ... to show where the warning was created)

The following tasks did not complete: build, , , html [14:23:40] Did you forget to signal async completion?

screenshot

I don't understand how to solve the problem. I read old posts on this topic and there the problem was in updating the Node version. But I have all new versions installed for 2022. I will be grateful for your help!

My gulp-file:

/* Основной модуль */
import gulp from "gulp";
/* Импорт путей */
import { path } from "./gulp/config/path.js";
/* Импорт общих плагинов */
import { plugins } from "./gulp/config/plugins.js";

/* Передаем значения в глобальную переменную */
global.app = {
    isBuild: process.argv.includes('--build'),
    isDev: !process.argv.includes('--build'),
    path: path,
    gulp: gulp,
    plugins: plugins,
}

/* Импорт задач */
import { copy } from "./gulp/tasks/copy.js";
import { reset } from "./gulp/tasks/reset.js";
import { html } from "./gulp/tasks/html.js";
import { server } from "./gulp/tasks/server.js";
import { scss } from "./gulp/tasks/scss.js";
import { js } from "./gulp/tasks/js.js";
import { images } from "./gulp/tasks/images.js";
import { otfToTtf, ttfToWoff, fontsStyle } from "./gulp/tasks/fonts.js";
import { svgSprive } from "./gulp/tasks/svgSprive.js";
import { zip } from "./gulp/tasks/zip.js";
import { ftp } from "./gulp/tasks/ftp.js";

/* наблюдатель за изменениями в файлах */
function watcher() {
    gulp.watch(path.watch.files, copy);
    gulp.watch(path.watch.html, html);  //gulp.series(html, ftp)
    gulp.watch(path.watch.scss, scss);
    gulp.watch(path.watch.js, js);
    gulp.watch(path.watch.images, images);
}

export { svgSprive }

// Последовательная обработка шрифтов
const fonts = gulp.series(otfToTtf, ttfToWoff, fontsStyle);

// Основные задачи
const mainTasks = gulp.series(fonts, gulp.parallel(copy, html, scss, js, images));

/* Построение сценариев выполнения задач */
const dev = gulp.series(reset, mainTasks, gulp.parallel(watcher, server));
const build = gulp.series(reset, mainTasks);
const deployZIP = gulp.series(reset, mainTasks, zip);
const deployFTP = gulp.series(reset, mainTasks, ftp);

// Экспорт сценариев
export { dev }
export { build }
export { deployZIP }
export { deployFTP }

/* Выполнение сценария по умолчанию */
gulp.task('default', dev);

My package.json:

{
    "name": "gulp",
    "version": "1.0.0",
    "description": "",
    "main": "gulpfile.js",
    "type": "module",
    "scripts": {
        "dev": "gulp",
        "build": "gulp build --build",
        "zip": "gulp deployZIP --build",
        "deploy": "gulp deployFTP --build",
        "svgSprive": "gulp svgSprive"
    },
    "author": "EB",
    "license": "ISC",
    "devDependencies": {
        "browser-sync": "latest",
        "del": "latest",
        "gulp": "latest",
        "gulp-autoprefixer": "latest",
        "gulp-clean-css": "latest",
        "gulp-file-include": "latest",
        "gulp-fonter": "latest",
        "gulp-group-css-media-queries": "latest",
        "gulp-if": "latest",
        "gulp-imagemin": "latest",
        "gulp-newer": "latest",
        "gulp-notify": "^4.0.0",
        "gulp-plumber": "latest",
        "gulp-pug": "latest",
        "gulp-rename": "latest",
        "gulp-replace": "latest",
        "gulp-sass": "latest",
        "gulp-svg-sprite": "latest",
        "gulp-ttf2woff2": "latest",
        "gulp-util": "latest",
        "gulp-version-number": "latest",
        "gulp-webp": "latest",
        "gulp-webp-html-nosvg": "latest",
        "gulp-webpcss": "latest",
        "gulp-zip": "latest",
        "sass": "latest",
        "swiper": "^8.0.7",
        "vinyl-ftp": "latest",
        "webp-converter": "2.2.3",
        "webpack": "latest",
        "webpack-stream": "latest"
    },
    "dependencies": {
        "jquery": "^3.6.0",
        "magnific-popup": "^1.1.0",
        "uuid": "^8.3.2"
    }
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source