Re:NPM chalk goes esm-only and disables issues
by mofle on Saturday January 22, 2022 @06:30AM
(#30035789)
We explicitly point out in the release notes that TypeScript users should not upgrade yet. Chalk v4 has been stable for years and you can continue to use that if you cannot use ESM.
https://github.com/chalk/chalk/releases/tag/v5.0.0
https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3...
And for the problems with esm and TypeScript:
https://github.com/microsoft/TypeScript/issues/46452