Troubleshooting
Three checks usually locate the problem:
- Read the placeholder label:
labelsdistinguishes "not evaluated", "blocked", and "unknown structure". - Read
document.diagnostics: each record hasstage,code, and a source position. - Reduce to the smallest source and options; remove custom plugins and components to reproduce.
If you are unsure whether a placeholder is expected, compare it with the default output in the overview and syntax support.
Display
See Syntax support for the full default output.
Runtime and build
Error codes
Errors carry code; prepare errors also carry stage. Never branch on message text.
See Errors and diagnostics for the full list and class hierarchy.
Reading diagnostics
stagecan beparse,expand,wikitext,hast,rehype,sanitize, orfinalize.- A diagnostic never aborts the whole page; a render failure replaces only the affected top-level block.
- View failures are reported through
onRenderError; the placeholder title comes fromlabels.renderFailed. metarecords the effectivepolicy,labels,headingIdStrategy, and authorized images, which helps confirm that config actually applied.
Still stuck
When reporting, include:
- The smallest wikitext source and
pageName. - Entry, parse options, and prepare options (redacted if needed).
- Library version,
parserVersion, React, and bundler versions. document.diagnosticsplus the errorcode,stage, andcause.
More channels are listed in Contributing and feedback.