svg-sprite icon indicating copy to clipboard operation
svg-sprite copied to clipboard

[Critical Bug] Severe Memory leak on SSR (JavaScript Heap Out of Memory)

Open raminjafary opened this issue 10 months ago • 0 comments

Describe the bug

Memory continues to grow and GC is never triggered and this results in JavaScript Heap Out of Memory on production (or any) environment, regardless of how high you set the node young and old memory space. The profiling results are attached. @harlan-zw @farnabaz @atinux I do not know if this module is maintained anymore as the last active development is two years ago.

Reproduction

https://github.com/raminjafary/nuxt-svg-sprite-module-repro

Additional context

Image

Comment out all <svg-icon> or put them inside <client-only> and the issue goes away:

Image

Logs


raminjafary avatar May 26 '25 06:05 raminjafary