#Hydration error, how to fix it ?

66 messages · Page 1 of 1 (latest)

rancid veldt
#

Hydration error, how to fix it ?

#

and what is causing this?

celest harbor
#

you seem to have a hole bunch of hydration errors all over the place, not just in that file

#

probably unrelated but you want to use NuxtLink instead of router link in nuxt apps

rancid veldt
#

Oh ok

#

I am converting my site from view 3 to nuxt 3

celest harbor
#

hard to tell without the full code

#

in general its caused by invalid html or a state mismatch between client and server

rancid veldt
celest harbor
#

if that's the question

rancid veldt
#

My TheNavBar

#

most of the error come from here

celest harbor
#

are you logged in on your local website?

rancid veldt
#

yes

celest harbor
#

try logging out and see if the issue goes away

rancid veldt
#

maybe it don't like the https lol

celest harbor
#

I see you are using cloudflare as a proxy

rancid veldt
#

yes

celest harbor
rancid veldt
#

bbut on the direct ip

celest harbor
#

make sure you read through that checklist

rancid veldt
#

i don't have the erros

celest harbor
#

then it's probably that checklist

#

my guess would be on auto minify

rancid veldt
#

but i don't use cloudflare worker

#

it's just proxied to my server

celest harbor
#

yes

#

see my screenshot

#

it specifcally covers the cf cdn proxy and which settings to avoid

rancid veldt
#

oh i miss read

#

It fixed the issue

#

thanku !

celest harbor
#

Nice!

#

Youre welcome😊

rancid veldt
#

:)

rancid veldt
#

ah

rancid veldt
#

Hello @celest harbor ?

celest harbor
#

?

rancid veldt
#

it come from this code

#

wtf

celest harbor
#

try creating a repro here

rancid veldt
#

On my side, I don't have the error

celest harbor
#

U can't access localstorage on server side

rancid veldt
#

But it works on my side

#

but not on this editor

celest harbor
#

I doubt that

#

The environment is the same

rancid veldt
celest harbor
#

So you likely have a difference somewhere else

rancid veldt
#

I copied and pasted my DropDown file

#

It's weird

#

On my app.vue i have this

celest harbor
#

idk