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
Since I updated to 1.4.x the icons are not working anymore. The svg tags are just empty.
I tried out a lot and found out that the svg tags are just empty on first call of renderToString(). But they are visible when one of this conditions is true:
When changing something on the page and Nuxt is refreshing (without refreshing the browser window)
If I call it twice with a little delay between the icons are working correctly
If I have the same icon visible on the page already
The text was updated successfully, but these errors were encountered:
MickL
changed the title
[Vue warn]: Component NuxtIcon is missing template or render function.
BUG: Component NuxtIcon is missing template or render function.
Oct 5, 2024
MickL
changed the title
BUG: Component NuxtIcon is missing template or render function.
Empty SVG tags: Component NuxtIcon is missing template or render function
Oct 5, 2024
MickL
changed the title
Empty SVG tags: Component NuxtIcon is missing template or render function
Empty SVG tags when using renderToString() for the first time
Oct 9, 2024
I think this is because the Icon components are async components - maybe you need to try wrapping your component with Suspense to await the icon to be loaded before the renders the output
I render a component including icons (with mode svg) to html code to be shown in eBay descriptions:
Since I updated to 1.4.x the icons are not working anymore. The svg tags are just empty.
I tried out a lot and found out that the svg tags are just empty on first call of renderToString(). But they are visible when one of this conditions is true:
The text was updated successfully, but these errors were encountered: