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

too many instances of shiki on hot reload #252

Open
ThallesP opened this issue Oct 24, 2024 · 1 comment
Open

too many instances of shiki on hot reload #252

ThallesP opened this issue Oct 24, 2024 · 1 comment

Comments

@ThallesP
Copy link

this might not be a big deal as it only seems to happen on hot reload (development server) but i've been getting the following warning from Shiki saying that I've too many instances, causing a memory leak on a development server:
image

I've seen the following suggestion:
vercel/next.js#26427 (comment)
but unfortunately I can't call .dispose as shown by Shiki, what can I do?

@simstrom
Copy link

simstrom commented Nov 3, 2024

+1

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