Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

MaxListenersExceededWarning #74

Open
Hasenpfote opened this issue Mar 2, 2023 · 1 comment
Open

MaxListenersExceededWarning #74

Hasenpfote opened this issue Mar 2, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@Hasenpfote
Copy link

Hi, @JulianCataldo.

When using astro-diagram v0.6.3, the following warning was output.
I have confirmed that if the total number of mermaid code blocks is 11 or more at build time, it will always be output.
Is there any way to suppress this?

astro-mermaid-issue

@JulianCataldo
Copy link
Owner

Hello there,

My hunch is it's due to the fact that each diagram is spinning up its own puppeteer (headless browser) instance.

Wild guess to solve this is to re-use browser tab instead of launching a whole browser each time?

Or maybe it's caused by the HMR / Vite server which is spinning up too many instances?

This package I'm building could mitigate the last guess, by decoupling processes from the dev. server:
https://github.com/JulianCataldo/astro-sidecar

Thanks for reporting!

@JulianCataldo JulianCataldo added the good first issue Good for newcomers label Mar 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants