Skip to content

fix: downgrade chalk and boxen to CommonJS-compatible versions#41

Merged
naheel0 merged 2 commits intomainfrom
copilot/fix-chalk-yellow-function-error
Mar 3, 2026
Merged

fix: downgrade chalk and boxen to CommonJS-compatible versions#41
naheel0 merged 2 commits intomainfrom
copilot/fix-chalk-yellow-function-error

Conversation

Copy link
Contributor

Copilot AI commented Mar 3, 2026

chalk@5 and boxen@8 are ESM-only packages, but the codebase uses CommonJS require(). Loading an ESM-only package via require() returns an empty object {}, causing chalk.yellow (and similar methods) to be undefined at runtime.

Changes

  • package.json: Downgrade chalk ^5.6.2^4.1.2 and boxen ^8.0.1^5.1.2 — the last respective versions shipping CJS builds
  • package-lock.json: Updated to reflect the new resolved versions

No call-site changes required; the chalk v4 / boxen v5 APIs are identical to what the code already uses.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Fix TypeError related to chalk.yellow function fix: downgrade chalk and boxen to CommonJS-compatible versions Mar 3, 2026
@naheel0 naheel0 marked this pull request as ready for review March 3, 2026 16:37
@naheel0 naheel0 merged commit bedb902 into main Mar 3, 2026
4 checks passed
@naheel0 naheel0 deleted the copilot/fix-chalk-yellow-function-error branch March 3, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants