For AI agents: the complete documentation index is available at https://mfdoctor.kevinbeier.com/1.0.0/de/llms.txt, the full documentation bundle is available at https://mfdoctor.kevinbeier.com/1.0.0/de/llms-full.txt, and this page is available as Markdown at https://mfdoctor.kevinbeier.com/1.0.0/de/rules/bridge/router-shared-conflict.md.

Dies ist die deutsche MFDoctor-Dokumentation. Technische Bezeichner, CLI-Flags, Regel-IDs und Codebeispiele bleiben unverändert, damit die Inhalte zwischen den Sprachen vollständig kompatibel bleiben. Verwenden Sie den Sprachumschalter für die kanonische englische Fassung.

bridge/router-shared-conflict

  • Kategorie: correctness
  • Standardschweregrad: error

Problem

Bridge router aliases React Router; sharing react-router / react-router-dom at the same time can load duplicate router runtimes and break navigation.

So beheben Sie das Problem

Remove React Router from shared, or disable Bridge router with bridge.enableBridgeRouter: false. Soften with rules["bridge/router-shared-conflict"]: "off" when intentional.

Suppress or retarget with rules["bridge/router-shared-conflict"] set to "off" or a severity — see Suppressions and allowlists.

Quellen