Skip to content

Conversation

@uhyo
Copy link
Contributor

@uhyo uhyo commented Nov 27, 2021

Fixes #46930

chalk v5.0.0 was released and we cannot build TypeScript now if we have run npm install after the release. 😢

This PR changes the script so that it works with chalk v5.0.0. Fortunately, the new code is compatible with both chalk 4.x and 5.0.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Nov 27, 2021
This makes code compatible with chalk v5.0.0.
@orta
Copy link
Contributor

orta commented Nov 29, 2021

Confirmed this works locally also - thanks @uhyo!

@orta orta merged commit 04f831d into microsoft:main Nov 29, 2021
@uhyo uhyo deleted the fix-46930 branch November 30, 2021 01:48
@MartinJohns MartinJohns mentioned this pull request Dec 1, 2021
@rbuckton
Copy link
Contributor

rbuckton commented Dec 2, 2021

Do we want to depend on import() or just depend on chalk@4? I created #46985 to pin chalk after seeing issues when running RWC in other PRs, but hadn't seen this change.

rbuckton added a commit that referenced this pull request Dec 2, 2021
rbuckton added a commit that referenced this pull request Dec 2, 2021
* Pin chalk to ^4.1

* Revert #46931
andrewbranch pushed a commit to andrewbranch/TypeScript that referenced this pull request Dec 3, 2021
andrewbranch added a commit that referenced this pull request Dec 3, 2021
* Pin chalk to ^4.1

* Revert #46931

Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
mprobst pushed a commit to mprobst/TypeScript that referenced this pull request Jan 10, 2022
This makes code compatible with chalk v5.0.0.
mprobst pushed a commit to mprobst/TypeScript that referenced this pull request Jan 10, 2022
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot build TypeScript due to use of chalk v5.0.0

4 participants