Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import chalk with import() syntax #46931

Merged
merged 1 commit into from Nov 29, 2021
Merged

Import chalk with import() syntax #46931

merged 1 commit into from Nov 29, 2021

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
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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