-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Symlink docs folder not working #6257
Comments
I've managed to narrow it down. It's because the MDX loader created by the doc plugin only includes the symlinked directory, but Webpack loads from the original directory. This causes the MDX fallback loader to kick in on that folder. #5679 is resolved because that one was symlinking the entire site directory, not one folder. See #5126, #5164 for the backstory. @slorber I think @softmarshmallow I know you probably used the symlink because of #6256, but I can guarantee that directly referencing an external folder should work, and if it doesn't, it's because of your package manager. |
yes @Josh-Cena, can't find where but it was also discussed in another issue about re-enabling this setting. I'm fine with that 👍 |
Going to close as wontfix. If you want to support symlinked content directories, just use |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
See - https://github.com/gridaco/grida.co/tree/snapshot-docusaurus-symlink-docs-not-working
ln -s ../docs .
Crashes.
When you remove symlink, copy whole folder instead, It works.
Steps to reproduce
Cannot destructure property 'description' of 'metadata' as it is undefined.
To make it work.
Expected behavior
Symlink directory should work same as non symlink
Actual behavior
Your environment
^2.0.0-beta.14
Reproducible demo
https://github.com/gridaco/grida.co/tree/snapshot-docusaurus-symlink-docs-not-working
Self-service
Related
This is exactly same issue with #5679 But this seems to be not resolved.
The text was updated successfully, but these errors were encountered: