-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong link showing up after building Docusaurus website #5617
Comments
Try running |
Yep, also removed all |
docusaurus.bug.1.mp4Here's the screen record. |
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. |
Yes if I copy the whole document of
It works, but it's just annoying since the link is on a paragraph and I have to fight against the CSS. |
Finally I was able to find the cause, happy to get this solved! |
🐛 Bug Report
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
The link of the
a
tag on theindex.jsx
file went wrong when building the docusaurus website but it's all okay when running the local development.Have you read the Contributing Guidelines on issues?
yes
Steps to reproduce
I don't think I could host the production on code sandbox, could I? However, here's the code https://github.com/kimlimjustin/xplorer/blob/master/docs/src/pages/index.jsx
Expected behavior
I hope the link is just okay (same as when development).
(Write what you thought would happen.)
Actual behavior
The link is just broken.
Docusaurus.bug.mp4
Your environment
Reproducible demo
Here's the source code: https://github.com/kimlimjustin/xplorer/blob/master/docs/src/pages/index.jsx
The text was updated successfully, but these errors were encountered: