next-federation
Errors

NF-028: Remote component rendered in the browser only

The host did not render a remote component on the server. The server HTML has its fallback and the browser renders the component. The message names the...

Why This Error Occurred

The host did not render a remote component on the server. The server HTML has its fallback and the browser renders the component. The message names the case.

Possible Ways to Fix It

  • Unverified or untrusted build: sign the remote's descriptor (NF_COMPONENTS_SIGNING_KEY at build time, publicKeys in the host) or pin its builds, and pass the descriptor from getComponentDescriptor unchanged:

    // federation.ts
    components: { ssr: { publicKeys: [/* the remote's public JWK */] } }
  • Node.js too old: run the host on Node.js 20.16 or newer.

  • Nested remotes: expose the nested components from their own remote and use them from the host directly.

  • Mixed-router hosts: build remotes with a Module Federation plugin version the library lists.

  • Stale share cache: restart the dev server, or install one copy of each host-provided module.

  • To turn server rendering off without a warning, set components.ssr: false.

On this page