Troubleshoot Runtime Issues
Diagnosing Module Federation runtime problems is complex. Remote resolution, Shared version selection, Bridge lifecycle, and module performance evidence exist only in the live page runtime. Source code or Console output alone rarely reconstructs the complete chain.
We built the Divebell MF Extension on top of the MF runtime and observability capabilities. It identifies MF instances, traces Remote, Shared, and Bridge loading, and analyzes the relationship between module loading, resource requests, and page paint timing.
Install the CLI and discover its Skill
Install Divebell globally on the agent machine:
Inspect the installed commands and print the bundled CLI Skill path:
An AI coding agent should read the returned SKILL.md in full before running
commands. Installed help is the source of truth for commands and options.
Install the Module Federation Extension
divebell mf --skill prints the Skill packaged with the installed Extension.
The agent should read it before choosing an MF command or interpreting command
output.
The CLI and Extension are agent-side tools. They are not application dependencies and do not modify the inspected project.
Open the page with MF diagnostics
The bare --mf flag enables the Extension before navigation, so it can
capture the initial MF loading history. It is different from --mf <name> on
some divebell mf commands, which selects one visible MF instance after the
page is open.
Use the authorized account and environment required by the task. Never bypass an authorization boundary.
Runtime Diagnostic Capabilities
Use divebell mf status only when the target is unknown. When the target is
clear, go directly to the smallest specialized command instead of scanning all
browser logs.
Use module-perf --report --view timeline only when a consolidated,
human-readable performance timeline is needed:
module-perf --report reorganizes the same evidence; it does not rerun the
module load. The terminal timeline relates Page Paint, Consumer, Provider,
module, Shared, and resource-request timing.
Usage
After installation, describe the page symptom and the decision you need from the agent.
Diagnose an MF runtime failure
Locate a performance bottleneck
Trace Shared or Bridge behavior
The agent should diagnose in this order:
- Start collection before navigation with
divebell open <url> --mf. - Use
mf statuswhen the target is unknown; otherwise run the relevant specialized command directly. - Reproduce browser interaction only when it triggers the lazy load, then read the specialized MF evidence again.
- Read
warnings,recommendedActions,selection, capabilities, and completeness before concluding. Reopen with--mfwhen history is partial. - State what the evidence proves, what it does not prove, and the exact command used.
Proxy a Remote before MF starts
--mf-proxy replaces a Remote before navigation. The key can be the
configured Remote name or alias:
The proxy applies only to that open operation. Add --mf when the same run
also needs structured diagnostics.
Evidence boundaries
- A successful MF load proves that the runtime completed that layer. It does not prove that the UI rendered or that business data is ready.
- Verify the final page result through Divebell after inspecting MF evidence.
- The MF Extension returns bounded, serializable evidence. It does not read cookies, tokens, factories, container objects, or business response bodies.
- Do not add the Runtime SDK or Observability Plugin merely to start a one-off investigation.
- Use the application Observability Plugin when reports must be retained, uploaded, or collected continuously in development or production.
See the Divebell MF Extension documentation for the complete installed command surface.