Closed kirvedx closed 2 years ago
This package is now pure ESM. Please read this. - https://github.com/sindresorhus/del/releases/tag/v7.0.0
@kirvedx just use rimraf
instead, it will do the same job and you won't be subject to this weird ESM crusade.
@jpike88 Appreciate the mention - Thanks.
I mindlessly - and lazily - reported Del wasn't working with Gulp and continued working without updating it. I'm working with a collection of 40+ modules and really just wanted to avoid deviating into module template management at the time; but I've since done so.
Issue
After upgrading to del v7, there is an error in the build.
What I did
I ran
npx npm-check-updates -u
and the result was:I then did subsequently run
npm install
The Error
After running
npm run build && npm run test
, I received the following:The problem
The suggestion says I should change require of ES Module to an Import. However, this is already the case. See my Gulpfile:
I use Babel for ES6 support. So, I've named my file
gulpfile.babel.js
, and I have a.babelrc
file in the root of the project with the following contents:Other Information
I'm current running:
Environment:
I have
NODE_OPTIONS=--no-experimental-fetch
setup when terminal program is"vscode"
within my.bashrc
⇨ simply because Node v18 brought some changes that require that for most of my modules.Current Resolution
I've reverted to
del v6
Conclusion
I'd like to know if this is something I'm failing to attend in some other fashion - or if this is an issue with the latest release (v7).