nuxt-icons icon indicating copy to clipboard operation
nuxt-icons copied to clipboard

Hydration error when using with Teleport on nuxt 3

Open Dante3003 opened this issue 3 years ago • 2 comments

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):

  • OS: MacOs Ventura 13.5
  • Browser Chrome

Dante3003 avatar Aug 25 '23 09:08 Dante3003

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

NordsKingArt avatar Sep 05 '23 16:09 NordsKingArt

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

Dante3003 avatar Nov 15 '23 05:11 Dante3003