#Error Hydration failed because the initial UI does not match what was rendered on the server

11 messages · Page 1 of 1 (latest)

zenith gust
#

Hello guys im getting an error again and again when i add the next link in my button. Maybe i use the wrong structure of ui but can anyone help how can i solve it .

My Code:

#

When i add the link it will give me the ui hyderation failed error

oblique rose
#

it because you have multiple childs inside Link component wrap them with div should solve problem

tulip loom
oblique rose
#

after next13 you should wrap after using Link because Link is a conponent and it should have only one child can you share your code here? @tulip loom

tulip loom
#
                <Link href="/" className="cursor-pointer flex">
                    <Image
                        width={120}
                        height={72}
                        src="/logo.png"
                        alt="Apex Manga - Logo"/>
                </Link>
#

It only has one child

oblique rose
#

you dont need cursor pointer here other things look normal to me

tulip loom
#

I will try removing cursor pointer

oblique rose
#

you are using next13 right

tulip loom
#

Yea