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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chalk 5.x fails with typescript #613
Comments
The error message is:
This is from the generated JavaScript. The original TypeScript uses:
I can't find any combination that does work. |
I suppose this may be a TypeScript issue, but they appear to have punted: This issue appears to be well-known on the Internet, but apparently nobody filed a ticket before ;-{ I will look into the ESM discussion to see if that helps... https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c |
Oh, I guess this issue came up before, sorry: |
The current 5.x version of chalk does not appear to work with typescript.
Here is an example project that works great with v4.x, but fails catastrophically when upgrading to 5.x:
TheSwanFactory/ts-cli#5
https://github.com/TheSwanFactory/ts-cli/tree/5-chalk-5x-fails-with-typescript
The text was updated successfully, but these errors were encountered: