#Getting error Hydration failed , I am unable to solve
36 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
@gilded pagoda
Your question currently does not have sufficient information for people to be able to help. Please add more information to help us help you, for example: relevant code snippets, a reproduction repository, and/or more detailed error messages. See more info on how to ask a good question in https://discord.com/channels/752553802359505017/1138338531983491154 and #welcome message
Getting this error
I meant you need to show us some code
I dont know where this error occur
Remove parts of your pages until the error goes away
I am finding the cause of this but unable to get
Then you will know the place the error occurs
With this much info we cannot help with anything
i have 5-6 pages routes🙂🙂
how I will share codes ?
Have you isolated the error and now know where the error is from?
If yes then post here the relevant code snippet
yes, but make it as minimal as possible. if it's too large or complicated to set up (with db etc) then i may not have time to check it
okay its only frontend only first page is completed
here it is
on what route does the error happen
in navbar.tsx:
you cannot nest button inside button.
the SheetTrigger already renders a button by default so that causes the error
to fix, use asChild:
- <SheetTrigger>
+ <SheetTrigger asChild>
wait I will try
thank you. for the help its solvede
i did not know that it render a button by defayult
umm. that's what radix does
okh thank you , Got it
This question has been marked as answered! If you have any other questions, feel free to create another post
[Click here](#1143446704079769652 message)
Hi ! I am working in my project and I have got this error
can you help me !
this my code
though the error is the same, the bug is completely unrelated to the bug in this post, please make a new post
btw div doesn't have asChild. asChild is a radix thing
yes,,, thank ! I am try to find the source of this problem and to give the new post