N
Nuxt2y ago
ABON

Hydration error, how to fix it ?

No description
46 Replies
ABON
ABONOP2y ago
No description
ABON
ABONOP2y ago
Hydration error, how to fix it ? and what is causing this?
warflash
warflash2y ago
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
ABON
ABONOP2y ago
Oh ok I am converting my site from view 3 to nuxt 3 Yes whats cause this ?
warflash
warflash2y ago
hard to tell without the full code in general its caused by invalid html or a state mismatch between client and server
ABON
ABONOP2y ago
No description
warflash
warflash2y ago
if that's the question
ABON
ABONOP2y ago
My TheNavBar most of the error come from here
warflash
warflash2y ago
are you logged in on your local website?
ABON
ABONOP2y ago
yes
warflash
warflash2y ago
try logging out and see if the issue goes away
ABON
ABONOP2y ago
No description
ABON
ABONOP2y ago
No description
ABON
ABONOP2y ago
https://dev.flavibot.xyz/ maybe it don't like the https lol
warflash
warflash2y ago
I see you are using cloudflare as a proxy
ABON
ABONOP2y ago
yes
warflash
warflash2y ago
Nuxt
Deployment · Get Started with Nuxt
Deploy on a Node.js server, pre-render for static hosting and to serverless or edge environments.
No description
ABON
ABONOP2y ago
bbut on the direct ip
warflash
warflash2y ago
make sure you read through that checklist
ABON
ABONOP2y ago
i don't have the erros
warflash
warflash2y ago
then it's probably that checklist my guess would be on auto minify
ABON
ABONOP2y ago
but i don't use cloudflare worker it's just proxied to my server
warflash
warflash2y ago
yes see my screenshot it specifcally covers the cf cdn proxy and which settings to avoid
ABON
ABONOP2y ago
oh i miss read It fixed the issue thanku !
warflash
warflash2y ago
Nice! Youre welcome😊
ABON
ABONOP2y ago
:)
ABON
ABONOP2y ago
No description
ABON
ABONOP2y ago
ah Hello @warflash ?
warflash
warflash2y ago
?
ABON
ABONOP2y ago
for this
ABON
ABONOP2y ago
No description
ABON
ABONOP2y ago
it come from this code
ABON
ABONOP2y ago
No description
ABON
ABONOP2y ago
wtf
ABON
ABONOP2y ago
No description
ABON
ABONOP2y ago
On my side, I don't have the error
warflash
warflash2y ago
U can't access localstorage on server side
ABON
ABONOP2y ago
But it works on my side but not on this editor
warflash
warflash2y ago
I doubt that The environment is the same
warflash
warflash2y ago
So you likely have a difference somewhere else
ABON
ABONOP2y ago
No description
ABON
ABONOP2y ago
I copied and pasted my DropDown file It's weird
ABON
ABONOP2y ago
On my app.vue i have this
No description
warflash
warflash2y ago
idk without seeing things I cant really help unfortunately
Want results from more Discord servers?
Add your server