D:\OSPanel\domains\vbstarterkit-site> python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# C:\Python27\lib\site.pyc matches C:\Python27\lib\site.py
import site # precompiled from C:\Python27\lib\site.pyc
# C:\Python27\lib\os.pyc matches C:\Python27\lib\os.py
import os # precompiled from C:\Python27\lib\os.pyc
import errno # builtin
import nt # builtin
# C:\Python27\lib\ntpath.pyc matches C:\Python27\lib\ntpath.py
import ntpath # precompiled from C:\Python27\lib\ntpath.pyc
# C:\Python27\lib\stat.pyc matches C:\Python27\lib\stat.py
import stat # precompiled from C:\Python27\lib\stat.pyc
# C:\Python27\lib\genericpath.pyc matches C:\Python27\lib\genericpath.py
import genericpath # precompiled from C:\Python27\lib\genericpath.pyc
# C:\Python27\lib\warnings.pyc matches C:\Python27\lib\warnings.py
import warnings # precompiled from C:\Python27\lib\warnings.pyc
# C:\Python27\lib\linecache.pyc matches C:\Python27\lib\linecache.py
import linecache # precompiled from C:\Python27\lib\linecache.pyc
# C:\Python27\lib\types.pyc matches C:\Python27\lib\types.py
import types # precompiled from C:\Python27\lib\types.pyc
# C:\Python27\lib\UserDict.pyc matches C:\Python27\lib\UserDict.py
import UserDict # precompiled from C:\Python27\lib\UserDict.pyc
# C:\Python27\lib\_abcoll.pyc matches C:\Python27\lib\_abcoll.py
import _abcoll # precompiled from C:\Python27\lib\_abcoll.pyc
# C:\Python27\lib\abc.pyc matches C:\Python27\lib\abc.py
import abc # precompiled from C:\Python27\lib\abc.pyc
# C:\Python27\lib\_weakrefset.pyc matches C:\Python27\lib\_weakrefset.py
import _weakrefset # precompiled from C:\Python27\lib\_weakrefset.pyc
import _weakref # builtin
# C:\Python27\lib\copy_reg.pyc matches C:\Python27\lib\copy_reg.py
import copy_reg # precompiled from C:\Python27\lib\copy_reg.pyc
# C:\Python27\lib\traceback.pyc matches C:\Python27\lib\traceback.py
import traceback # precompiled from C:\Python27\lib\traceback.pyc
# C:\Python27\lib\sysconfig.pyc matches C:\Python27\lib\sysconfig.py
import sysconfig # precompiled from C:\Python27\lib\sysconfig.pyc
# C:\Python27\lib\re.pyc matches C:\Python27\lib\re.py
import re # precompiled from C:\Python27\lib\re.pyc
# C:\Python27\lib\sre_compile.pyc matches C:\Python27\lib\sre_compile.py
import sre_compile # precompiled from C:\Python27\lib\sre_compile.pyc
import _sre # builtin
# C:\Python27\lib\sre_parse.pyc matches C:\Python27\lib\sre_parse.py
import sre_parse # precompiled from C:\Python27\lib\sre_parse.pyc
# C:\Python27\lib\sre_constants.pyc matches C:\Python27\lib\sre_constants.py
import sre_constants # precompiled from C:\Python27\lib\sre_constants.pyc
import _locale # builtin
# C:\Python27\lib\locale.pyc matches C:\Python27\lib\locale.py
import locale # precompiled from C:\Python27\lib\locale.pyc
import encodings # directory C:\Python27\lib\encodings
# C:\Python27\lib\encodings\__init__.pyc matches C:\Python27\lib\encodings\__init__.py
import encodings # precompiled from C:\Python27\lib\encodings\__init__.pyc
# C:\Python27\lib\codecs.pyc matches C:\Python27\lib\codecs.py
import codecs # precompiled from C:\Python27\lib\codecs.pyc
import _codecs # builtin
# C:\Python27\lib\encodings\aliases.pyc matches C:\Python27\lib\encodings\aliases.py
import encodings.aliases # precompiled from C:\Python27\lib\encodings\aliases.pyc
import operator # builtin
# C:\Python27\lib\functools.pyc matches C:\Python27\lib\functools.py
import functools # precompiled from C:\Python27\lib\functools.pyc
import _functools # builtin
# C:\Python27\lib\encodings\cp1251.pyc matches C:\Python27\lib\encodings\cp1251.py
import encodings.cp1251 # precompiled from C:\Python27\lib\encodings\cp1251.pyc
Python 2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:19:08) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
PS D:\OSPanel\domains\my-site> npm i
npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated wow.js@1.2.2: deprecated in favour of aos (Animate On Scroll)
npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
added 1521 packages, and audited 1522 packages in 28s
87 packages are looking for funding
run `npm fund` for details
47 vulnerabilities (32 moderate, 15 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
----------------------------------------------------------------
D:\OSPanel\domains\my-site> npm audit fix
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: babel-loader@8.2.3
npm ERR! Found: webpack@4.46.0
npm ERR! node_modules/webpack
npm ERR! dev webpack@"^4.46.0" from the root project
npm ERR! peer webpack@">=2" from babel-loader@8.2.3
npm ERR! node_modules/babel-loader
npm ERR! dev babel-loader@"^8.2.2" from the root project
npm ERR! 3 more (terser-webpack-plugin, webpack-stream, terser-webpack-plugin)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@">=2" from babel-loader@8.2.3
npm ERR! node_modules/babel-loader
npm ERR! dev babel-loader@"^8.2.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: webpack@5.64.3
npm ERR! node_modules/webpack
npm ERR! peer webpack@">=2" from babel-loader@8.2.3
npm ERR! node_modules/babel-loader
npm ERR! dev babel-loader@"^8.2.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\Vlad\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! <a href="https://drive.google.com/file/d/1mTRCv8fRYxn-eVj3sGiuD2p8hH5n8t0L/view?usp=sharing">C:\Users\Vlad\AppData\Local\npm-cache\_logs\2021-11-24T12_27_46_797Z-debug.log</a>
--------------------------------------------------------------
PS D:\OSPanel\domains\my-site> gulp
[15:44:51] Using gulpfile D:\OSPanel\domains\my-site\gulpfile.js
[15:44:51] Starting 'default'...
[15:44:51] Starting 'build'...
[15:44:51] Starting 'clean_build'...
[15:44:51] Finished 'clean_build' after 19 ms
[15:44:51] Starting 'html_build'...
[15:44:51] Starting 'js_build'...
[15:44:51] Starting 'css_build'...
[15:44:51] Starting 'php_build'...
[15:44:51] Starting 'fonts_build'...
[15:44:51] Starting 'icons_build'...
[15:44:51] Starting 'image_build'...
Deprecation Warning: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(20em, 16)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
12 │ $fa-fw-width: (20em / 16);
│ ^^^^^^^^^
╵
node_modules\@fortawesome\fontawesome-free\scss\_variables.scss 12:25 @import
node_modules\@fortawesome\fontawesome-free\scss\fontawesome.scss 5:9 @import
assets\src\style\_variables.scss 6:9 @import
assets\src\style\main.scss 27:9 root stylesheet
Deprecation Warning: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(4em, 3)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
6 │ font-size: (4em / 3);
│ ^^^^^^^
╵
node_modules\@fortawesome\fontawesome-free\scss\_larger.scss 6:15 @import
node_modules\@fortawesome\fontawesome-free\scss\fontawesome.scss 8:9 @import
assets\src\style\_variables.scss 6:9 @import
assets\src\style\main.scss 27:9 root stylesheet
Deprecation Warning: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(3em, 4)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
7 │ line-height: (3em / 4);
│ ^^^^^^^
╵
node_modules\@fortawesome\fontawesome-free\scss\_larger.scss 7:17 @import
node_modules\@fortawesome\fontawesome-free\scss\fontawesome.scss 8:9 @import
assets\src\style\_variables.scss 6:9 @import
assets\src\style\main.scss 27:9 root stylesheet
Deprecation Warning: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($fa-li-width * 5, 4)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
6 │ margin-left: $fa-li-width * 5/4;
│ ^^^^^^^^^^^^^^^^^^
╵
node_modules\@fortawesome\fontawesome-free\scss\_list.scss 6:16 @import
node_modules\@fortawesome\fontawesome-free\scss\fontawesome.scss 10:9 @import
assets\src\style\_variables.scss 6:9 @import
assets\src\style\main.scss 27:9 root stylesheet
[15:44:58] Finished 'css_build' after 7.09 s
[15:44:58] Finished 'html_build' after 7.5 s
[15:44:58] Finished 'php_build' after 7.59 s
[15:45:00] Finished 'fonts_build' after 9.15 s
[15:45:00] Finished 'icons_build' after 9.56 s
[15:45:03] gulp-imagemin: Minified 0 images
[15:45:03] Finished 'image_build' after 12 s
[15:45:04] Version: webpack 4.46.0
Built at: 24.11.2021 15:45:04
Asset Size Chunks Chunk Names
gsap-site.js 304 KiB gsap-site [emitted] gsap-site
gsap-site.js.LICENSE.txt 1.99 KiB [emitted]
main.js 2.97 MiB main [emitted] main
main.js.LICENSE.txt 95.6 KiB [emitted]
Entrypoint main = main.js
Entrypoint gsap-site = gsap-site.js
[15:45:04] Finished 'js_build' after 14 s
[15:45:04] Finished 'build' after 14 s
[15:45:04] Starting 'webserver'...
[15:45:04] Starting 'watch'...
[Browsersync] Proxying: http://my-site
[Browsersync] Access URLs:
-------------------------------------
Local: http://localhost:3000
External: http://192.168.1.53:3000
-------------------------------------
UI: http://localhost:3001
UI External: http://localhost:3001
-------------------------------------
PS D:\OSPanel\domains\my-site-bak> gulp
Error [ERR_REQUIRE_ESM]: require() of ES Module D:\OSPanel\domains\my-site-bak\node_modules\gulp-imagemin\index.js from D:\OSPanel\domains\my-site-bak\gulpfile.js not supported.
Instead change the require of index.js in D:\OSPanel\domains\my-site-bak\gulpfile.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (D:\OSPanel\domains\my-site-bak\gulpfile.js:62:16)
at async Promise.all (index 0) {
code: 'ERR_REQUIRE_ESM'
}
PS D:\OSPanel\domains\my-site-bak> gulp
ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and 'D:\OSPanel\domains\my-site-bak\package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
at file:///D:/OSPanel/domains/my-site-bak/gulpfile.js:49:14
at ModuleJob.run (node:internal/modules/esm/module_job:185:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:281:24)
at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
PS D:\OSPanel\domains\my-site-bak>
Question:
We're using gulp-sass package that is only a wrapper for node-sass.
We encounter lots of deprecation warnings like:
DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal
in Sass 4.0. Use call(get-function("variable-exists")) instead.
This is a valid warning and is related to an old version of Susy Grid. But it is extremely annoying during our development process because it produces hundreds of warnings on each execution of the Sass task.
It would be really great to be able to disable these warnings somehow. Or at least show them only once and not on each execution.
Is there a chance to do that or do you already plan to update this behavior?
Thanks in advance!
Answer:
There's no way for the compiler to differentiate between code you own and code you don't.
These deprecation warnings are important. They're telling you that your code will cease to work very soon, and you should take steps to resolve the warnings asap.
If it's code you don't control then we recommend opening issues on the code's repo, or submitting a PR to resolve the warnings.
There is simply no way to disable these warning. If you don't want to see them I suggest downgrading to an older version of Sass and never updating again.