For AI agents: the complete documentation index is available at https://mfdoctor.kevinbeier.com/1.0.0/llms.txt, the full documentation bundle is available at https://mfdoctor.kevinbeier.com/1.0.0/llms-full.txt, and this page is available as Markdown at https://mfdoctor.kevinbeier.com/1.0.0/rules/vite/ssr-nitro-externals.md.

vite/ssr-nitro-externals

  • Category: reliability
  • Default severity: warning

Issue

Shared React (or react-dom) can conflict with Nitro/SSR externals and ssrEntryLoader when the server expects a different module instance.

How to fix it

Align shared React with ssrExternals / ssrEntryLoader for the SSR runtime, or document an intentional dual-instance path.

Suppress or retarget with rules["vite/ssr-nitro-externals"] set to "off" or a severity — see Suppressions and allowlists.

Sources