gitFoxCode / nuxt-icons

Module for Nuxt allowing pleasant use of svg icons
187 stars 23 forks source link

Hydration error when using with Teleport on nuxt 3 #47

Open Dante3003 opened 10 months ago

Dante3003 commented 10 months ago

When using Nuxticon inside Teleport, a Hydration error comes out *To Reproduce** [Steps to reproduce the behavior, If an icon causes an error, post its SVG code here ](https://codesandbox.io/p/sandbox/pensive-booth-76n3xn)

Desktop (please complete the following information):

NordsKingArt commented 10 months ago

Are you running Nuxt 3 in SSR mode? It may be problem with teleport as well. Because SSR only partially supports Teleport. In Nuxt 3 it only works with the body tag. 1) https://vuejs.org/guide/scaling-up/ssr.html#teleports 2) https://nuxt.com/docs/api/components/teleports

Dante3003 commented 7 months ago

@NordsKingArt Yes i use Nuxt on SSR mode and Teleport also use with body tag