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
Josh-Cena
added
closed: wontfix
A fix will bring significant overhead, or is out of scope (for feature requests)
and removed
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
labels
Jan 21, 2025
Markdown links referencing files are converted to require() calls, and by default require("./some.js") returns the transpiled module.
When it's used inside a Markdown links, returning the transpiled module has no utility at all IMHO, and we should probably use webpack file-loader in this case.
pathname:// is a decent workaround, but I still think we could improve a bit the default behavior for this edge case.
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
Something similar to #10460
Reproducible demo
No response
Steps to reproduce
This is simple to reproduce.
static/assets/upload/test.js
:This will break a build (rspack also).
It looks like #10460.
If the ‘invalid’ JavaScript is in the folder, but there is no reference to it, everything will build correctly.
Expected behavior
Documentation is built even if there is a reference to an invalid JavaScript file in static assets.
Actual behavior
Your environment
docusaurus 3.7.0
node 20.17.0
npm 10.8.2
Self-service
The text was updated successfully, but these errors were encountered: