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/vite/virtual-module-dir.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.

vite/virtual-module-dir

  • Kategorie: correctness
  • Standardschweregrad: warning

Problem

A virtualModuleDir with slashes is not a single virtual folder. Nested names collide with virtual module IDs and break Vite federation bootstrap.

So beheben Sie das Problem

Use one simple directory name without slashes, for example __mf__.

Suppress or retarget with rules["vite/virtual-module-dir"] set to "off" or a severity, see Suppressions and allowlists.

Quellen