Skip to content

Conversation

@stefee
Copy link

@stefee stefee commented Nov 10, 2024

Fixes #975

require('supports-color') in debug/src/node.js should require the CommonJS version of the supports-color package (version 8 or below) rather than ESM, because this package uses CommonJS modules.

requireing ESM modules/packages from CommonJS modules is still experimental and "not recommended in production environments".

@stefee
Copy link
Author

stefee commented Nov 10, 2024

Reviewing what's changed since the last v8 release: chalk/supports-color@v8.1.1...v9.4.0

Notable things that might regress as a result of downgrading to v8:

@Qix-
Copy link
Member

Qix- commented Dec 11, 2024

Thanks for the attempt, I appreciate the PR either way. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

debug causes npm to always issue an experimental ESM warning in node 23

2 participants