-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Bug when using tsm with chalk 5.0.0 #31
Comments
I'm getting the same issue when using https://github.com/sindresorhus/ora since it has chalk as a dependency |
Also getting this issue. I used a |
It seems like tsm doesn't support subpath imports yet? |
Same issue |
Created a Replit for this here: https://replit.com/@karlhorky/tsm-chalk-5-example#package.json This confirms that the problem is also present with an updated Line 36 in 2fd630d
|
Same error with tsm v2.3.0
|
First of all, thanks for this amazing project!
I noticed that tsm fails to import dependencies from chalk 5, giving the following error:
It seems like the chalk
supportsColor
import is becomingundefined
, and I believe it has something to do with how chalk imports its dependencies:Here is a GitHub repo that reproduces this error: https://github.com/leonzalion/tsm-bug
Node version: 16.13.2
Let me know if this is a
tsm
bug and/or if there's a workaround to this issue!The text was updated successfully, but these errors were encountered: