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
{{ message }}
Repository navigation
theme-mermaid: layout-elk is not really an optional dependency #11430
configureWebpack(config,isServer,utils){return{plugins: [newutils.currentBundler.instance.DefinePlugin({__DOCUSAURUS_MERMAID_LAYOUT_ELK_ENABLED__: JSON.stringify(// We only need to include the layout registration code on the// client side. This also solves a weird Webpack-only bug when// compiling the server config due to the module being ESM-only.!isServer&&elkLayoutEnabled,),}),],};},
Activity
gylxan commentedon Sep 26, 2025
Maybe I see the issue:
JSON.stringify of false ends in "false".
But the problem occurs here
This check is always true, because
So in my opinion the
JSON.stringifycall have to be removed or have to explicit check forslorber commentedon Sep 26, 2025
Thanks, agree that something looks wrong, I'll fix this asap
gylxan commentedon Sep 26, 2025
Thanks! Sorry, I couldn't properly reproduce it in a code sandbox :(
slorber commentedon Sep 26, 2025
I can reproduce locally, this only happens for Rspack, not Webpack. Still investigating because I can't reproduce easily in isolation 😓
slorber commentedon Sep 26, 2025
Couldn't really find the cause of this weird issue but it's definitely not related to
"false"and only happens when using Rspack/SWCI tried to ask the Rspack team about it, and will see if they have an idea.
Until then we'll fix this with a decent workaround: #11437
Mixermachine commentedon Sep 26, 2025
@slorber thanks a lot for the fast fix.
Is there already a potential release date?
We currently can't build updates for our documentation.
slorber commentedon Sep 26, 2025
I'll release another patch next week, after handling the other non-critical bugs from v3.9
Until then, there are many possible workarounds:
Mixermachine commentedon Sep 27, 2025
@slorber excelent, thanks.
The problem is fixed with version 3.9.1-canary-6409 for us and we can push updates again.
Kind regards from Germany
Hold back docusaurus due to build error
Dependency upgrades 2025-10-06 (#7543)
Dependency upgrades 2025-10-06 (#7543)
Spaces page with OpenAI implementation. (#7547)
fix: use 3.9.1-canary-6409 for meta/docusaurus#11430
slorber commentedon Oct 17, 2025
FYI we have released the above fix in v3.9.2
We have also found that this happened under 2 conditions:
Normally we'll be able to remove the v3.9.2 fix above in an upcoming release, by fixing the underlying problem (see #11496)
Dependency upgrades 2025-10-06 (#7543)
Spaces page with OpenAI implementation. (#7547)
[CI] Fix build: add missing @mermaid-js/layout-elk dep
[CI] Fix build: add missing @mermaid-js/layout-elk dep
[CI] Fix build: add missing @mermaid-js/layout-elk dep