vue-inline-svg icon indicating copy to clipboard operation
vue-inline-svg copied to clipboard

Memory leak

Open z1m1n opened this issue 1 year ago • 4 comments

Latest version of package (3.1.4) causing memory leak (heap out of memory)

z1m1n avatar Sep 18 '24 17:09 z1m1n

Can you provide reproduction? Did you check only last version or are you facing this issue after updating from 3.1.3?

shrpne avatar Sep 18 '24 20:09 shrpne

Can you provide reproduction? Did you check only last version or are you facing this issue after updating from 3.1.3?

I couldn't reproduce it in small stackblitz project right now, will try later. Yes, issue appeared in 3.1.4 and reverting to 3.1.3 resolve the issue.

z1m1n avatar Sep 19 '24 15:09 z1m1n

It is strange. InlineSvg component was not changed during 3.1.3 -> 3.1.4 update. There are only changes in .d.ts types

shrpne avatar Sep 19 '24 15:09 shrpne

It is strange. InlineSvg component was not changed during 3.1.3 -> 3.1.4 update. There are only changes in .d.ts types

it fails on project types check, tsc --noEmit

z1m1n avatar Sep 19 '24 18:09 z1m1n

If it fails on type check, then I suppose the issue is not a memory leak.

If InlineSvg's d.ts causes your tsc to fail, then probably you should use skipLibCheck option?

shrpne avatar Feb 03 '25 21:02 shrpne

Starting from v4.0.0 type definitions are generated by tsc so there should be no issues with them

shrpne avatar Feb 05 '25 23:02 shrpne