AllThingsSmitty / allthingssmitty.github.io

Where I write stuff 👨🏻‍💻
https://allthingssmitty.com
MIT License
16 stars 0 forks source link

Gulp error on run #136

Closed AllThingsSmitty closed 3 months ago

AllThingsSmitty commented 3 months ago

Running gulp default produces the following error:

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/mattsmith/GitHub/allthingssmitty.github.io/node_modules/del/index.js from /Users/mattsmith/GitHub/allthingssmitty.github.io/gulpfile.js not supported.
Instead change the require of index.js in /Users/mattsmith/GitHub/allthingssmitty.github.io/gulpfile.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/Users/mattsmith/GitHub/allthingssmitty.github.io/gulpfile.js:2:13)
    at async Promise.all (index 0) {
  code: 'ERR_REQUIRE_ESM'
}