hydration error, how to solve
Answered
subscr posted this in #help-forum
subscrOP
Well, I wanted to make a card (div) that can be clicked on and sent to a page, it is possible without a hydration error?
18 Replies
@subscr Well, I wanted to make a card (div) that can be clicked on and sent to a page, it is possible without a hydration error?
Turkish Van
When it comes to
https://nextjs.org/docs/messages/react-hydration-error
Here You can also find the possible ways to fix it.
hydration error, take a look at Next.js docs here:https://nextjs.org/docs/messages/react-hydration-error
Here You can also find the possible ways to fix it.
Also, feel free to share a bit more of the code, there might be some other solution for Your case which does not produce the following error.
@Turkish Van When it comes to `hydration` error, take a look at Next.js docs here:
https://nextjs.org/docs/messages/react-hydration-error
Here You can also find the possible ways to fix it.
subscrOP
Yes, I know, I wanted to make a div send it to another page, is it possible, just like my Link tag
To resolve the error, I know i need to remove the Link tag, but I would like to send it when clicking to another page
understand?
@subscr Well, I wanted to make a card (div) that can be clicked on and sent to a page, it is possible without a hydration error?
Giant panda
why not pass the div styles to link tag ?
@Giant panda why not pass the div styles to link tag ?
subscrOP
because i have a another div
Giant panda
can you share your code snippet (not ss) so I can test on my side
subscrOP
ye, wait
Giant panda
try clearing your next cache I think it is working on my side
subscrOP
alr
Giant panda
remove .next folder and restart the terminal
Answer
subscrOP
worked
thx 🙂