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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem using in Vite #35

Closed
tiye opened this issue Jan 2, 2023 · 2 comments
Closed

problem using in Vite #35

tiye opened this issue Jan 2, 2023 · 2 comments

Comments

@tiye
Copy link

tiye commented Jan 2, 2023

I got error TypeError: Cannot read properties of undefined (reading 'close') after running Vite build using this package. Error traced:

image

image

image

it works fine in Vite DEV demo. I guess it's because this package is referencing very old chalk 2.x which Vite does not optimizes well.

any plan to upgrade dependency or bypass the issue?

@sindresorhus
Copy link
Owner

chalk comes from the @babel/code-frame, which does not have any update, so you should open an issue on @babel/code-frame instead to get them to upgrade.

@sindresorhus sindresorhus closed this as not planned Won't fix, can't repro, duplicate, stale Jan 2, 2023
@tiye
Copy link
Author

tiye commented Jan 2, 2023

referenced babel/babel#15321 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants