You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong link showing up after building Docusaurus website #5617
Activity
kimlimjustin commentedon Sep 26, 2021
Btw, I tried replacing

<a>tag with theLinktag but still the same problems. Here's the codeJosh-Cena commentedon Sep 26, 2021
Try running
yarn clear? Also your site builds super fast👀kimlimjustin commentedon Sep 26, 2021
Yep, also removed all
node_modulesandyarn.lockand reinstall. Same bug.kimlimjustin commentedon Sep 26, 2021
docusaurus.bug.1.mp4
Here's the screen record.
slorber commentedon Sep 28, 2021
This is annoying, not the first time it happens, was also reported once by the React-Native website.
This is likely a React hydration problem: https://www.joshwcomeau.com/react/the-perils-of-rehydration/
This may be a bug in the Docusaurus theme (considering you don't have much customizations), but it could as well be a React bug 😅
Can you reproduce this bug in a newly initialized Docusaurus site with the same config?
Often, adding extra paragraphs and divs around the problematic elements is a good-enough workaround.
kimlimjustin commentedon Sep 28, 2021
Yes if I copy the whole document of
index.jsx.It works, but it's just annoying since the link is on a paragraph and I have to fight against the CSS.
slorber commentedon Sep 30, 2021
Finally I was able to find the cause, happy to get this solved!
#5629