-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix(cli): replace chalk with kleur #285
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -18,6 +18,9 @@ import { $ } from 'zx' | |||
import fs from 'fs/promises' | |||
import path from 'path' | |||
|
|||
// eslint-disable-next-line functional/immutable-data | |||
process.env.FORCE_COLOR = '1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I run commands like yarn dev:vue3
, the script dev-template.mjs
runs the template, but it didn't display any color at all. I'm not too sure but I think there is some issue regarding color + subprocess.
https://google.github.io/zx/known-issues#colors-in-subprocess
@eunjae-lee I am having the same issue after i started testing vue 2 and ran npm run dev I got an error regarding chalk. |
@eunjae-lee I see that there was a change where chalk was added to the external rollup options on 22.09.2023. Could this have caused the issue? Also, I am a bit rusty on this one but could you please explain what the external means? I will not bundled in the output right? |
Yes, you're correct. So this |
Strange, in my |
@BibiSebi you're right! Normally, when you run
Then the package That's why I thought it's okay to externalize To solve this issue, we can either
In my opinion, (1) is more intuitive as long as the bundle size is not an issue, and in this case, it's for So what I'd like to do is: A) still replace What do you think? @BibiSebi @demetriusfeijoo |
Thank you for the explanation, I was thinking that this might be the problem, but was unsure. It makes sense for me to go with the (1) suggestion. 👏 |
ready for review @BibiSebi @demetriusfeijoo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@demetriusfeijoo I merged this to release another version and start testing, although you haven't reviewed this yet. Let me know if you have any question or feedback! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @eunjae-lee, thanks for letting me know, and also the detailed explanation about the issue. 🙌
I understood what happened here 😅
Thanks for fixing it 🚀
What?
After creating a monorepo, I ran yarn workspace dev and got this error message:
There must be something wrong regarding ESM, but we are already successfully using another color library called kleur, so I’m going to replace chalk with kleur instead of digging into this issue.
Why?
JIRA: EXT-2038
How to test? (optional)