Bug: mdx-loader caching issue => linked md files should be added as dependencies #5757
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
difficulty: intermediate
Issues that are medium difficulty level, e.g. moderate refactoring with a clear test plan.
domain: markdown
Related to Markdown parsing or syntax
status: blocked
This issue is blocked by another issue or external dep and can't be pushed further.
🐛 Bug Report
Suppose you have:
Then if the linked md file change from
slug: /path1
toslug: /path2
the md file must be "invalidated"Otherwise, we'll keep linking to
/path1
(instead of new/path2
) due to Webpack caches.mdx-loader probably needs to collect linked file paths, and call
this.addDependency(linkedFilePath);
Issue noticed in PR #5755
https://app.netlify.com/sites/docusaurus-2/deploys/6171611d255a130008c35dff
Had to clear the Netlify cache to fix the build failure
The text was updated successfully, but these errors were encountered: