docusaurus icon indicating copy to clipboard operation
docusaurus copied to clipboard

Bug: mdx-loader caching issue => linked md files should be added as dependencies

Open slorber opened this issue 3 years ago • 3 comments

🐛 Bug Report

Suppose you have:

# md file

[link](./otherMdFile.md)

Then if the linked md file change from slug: /path1 to slug: /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 https://github.com/facebook/docusaurus/pull/5755

https://app.netlify.com/sites/docusaurus-2/deploys/6171611d255a130008c35dff

Had to clear the Netlify cache to fix the build failure

slorber avatar Oct 21 '21 13:10 slorber

can you explain this issue a bit more @slorber

balogun14 avatar Sep 28 '23 08:09 balogun14

can you explain this issue a bit more @slorber

This is not really an issue for first-time contributors @balogun14, I take notes for myself to solve this problem on my own later.

slorber avatar Sep 28 '23 08:09 slorber

@slorber Thank you for the response i will check other issues then

balogun14 avatar Sep 28 '23 08:09 balogun14