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/ssr/node-library-dts.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.

ssr/node-library-dts

  • Kategorie: reliability
  • Standardschweregrad: warning

Problem

Node/SSR producers that keep ESM-style library.type or enabled dts diverge from the commonjs dual-env contract used by server remotes.

So beheben Sie das Problem

Set library: { type: "commonjs-module" } (or another commonjs-like type) and dts: false on node/SSR producers. Set ssrMode: "browser-only" when not SSR, or turn the rule "off".

Suppress or retarget with rules["ssr/node-library-dts"] set to "off" or a severity — see Suppressions and allowlists.

Quellen