Variable Name being read instead of its Value - @svelte-put/preprocess-inline-svg

92 Views Asked by At

I am using @svelte-put/preprocess-inline-svg to handle SVG's in my sveltekit app.

I have an array of strings that has all of my icon names in it.

Whenever trying to use:

<svg data-inline-src=${realIconList[3]} />

I get the error: cannot find svg source for ${realIconList[3]}

How do I get the variable's value to be read instead of its actual name?

0

There are 0 best solutions below