For AI agents: the complete documentation index is available at https://mfdoctor.kevinbeier.com/de/llms.txt, the full documentation bundle is available at https://mfdoctor.kevinbeier.com/de/llms-full.txt, and this page is available as Markdown at https://mfdoctor.kevinbeier.com/de/rules/config/shared-externals-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.

config/shared-externals-conflict

  • Kategorie: correctness
  • Standardschweregrad: warning

Problem

A library listed in both shared and bundler externals is excluded from the bundle while still declared as shared, which causes runtime failures.

So beheben Sie das Problem

Remove the package from shared or from bundler externals (webpack/rspack externals, rsbuild output.externals). Functions and regex externals are not compared. When externals were not observed (CLI without externals and without an adapter), this rule skips.

Suppress or retarget with rules["config/shared-externals-conflict"] set to "off" or a severity, see Suppressions and allowlists.

Quellen