chalk/strip-ansi

Pure ESM issues #37

lropero posted onGitHub

Hi 👋 @sindresorhus,

I'm working a Node (v14.17.3) command line tool which uses this library and tried updating it from version v5.2.0 to v7.0.0.

I've read this and decided to give it a try by changing my project as described in the How can I move my CommonJS project to ESM? guideline, but then other libraries started complaining for not supporting ESM.

So how would I go about using the latest version of this library in my Node app/script?

Thank you for your work, your contribution to the space is amazing.


then other libraries started complaining for not supporting ESM

Libraries don't complain about this. Node might. Without errors, package names, code, etc. there's nothing we can do to help. Maybe try Stack Overflow since strip-ansi doesn't do anything fancy w.r.t. modules.

Good luck!

posted by Qix- over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests