You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
devvit create icons is supposed to convert svg files in the assets folder into usable image strings. That process results in an invalid svg if the file contains anything ahead of the <svg> tag.
The average svgfile will look something like this:
That results in the svg helper function logging "The provided string is not a valid SVG." and returning an empty string. Either the devvit create icons command or svg function needs to account for this, otherwise there is a lot of manual work required each time you regenerate the icons.
The text was updated successfully, but these errors were encountered:
devvit create icons
is supposed to convert svg files in the assets folder into usable image strings. That process results in an invalid svg if the file contains anything ahead of the<svg>
tag.The average svgfile will look something like this:
or this:
In both examples, the data before the actual svg is retained in the output, resulting in something like this:
That results in the
svg
helper function logging "The provided string is not a valid SVG." and returning an empty string. Either thedevvit create icons
command orsvg
function needs to account for this, otherwise there is a lot of manual work required each time you regenerate the icons.The text was updated successfully, but these errors were encountered: