I'm getting the following error when attempting to compile my styles. The contents of my task-styles.js file is below. Can you see a problem here?
_Error [ERR_REQUIRE_ESM]: require() of ES Module […]/nodemodules/gulp-filter/index.js from […]/task-styles.js not supported.
Instead change the require of index.js in […]/task-styles.js to a dynamic import() which is available in all CommonJS modules.
Unless I'm blind, there is no use of require here in connection with gulp-filter.
I'm getting the following error when attempting to compile my styles. The contents of my task-styles.js file is below. Can you see a problem here?
_Error [ERR_REQUIRE_ESM]: require() of ES Module […]/nodemodules/gulp-filter/index.js from […]/task-styles.js not supported. Instead change the require of index.js in […]/task-styles.js to a dynamic import() which is available in all CommonJS modules.
Unless I'm blind, there is no use of
require
here in connection with gulp-filter.