NF-027: Remote component server code failed its integrity check
The host could not verify a remote component build, so it did not run its server code. The component renders in the browser only. Server rendering runs...
Why This Error Occurred
The host could not verify a remote component build, so it did not run its server code. The component renders in the browser only. Server rendering runs the remote's code in the host's process, so the host only evaluates code that matches a descriptor it trusts.
Possible Ways to Fix It
- Signed build: build the remote with
NF_COMPONENTS_SIGNING_KEYset to the private key whose public half is in the host'scomponents.ssr.publicKeys. Keep the old key listed while builds signed with it are live. - Pinned build: copy the
digestfromnf-components.jsonintocomponents.ssr.pinned. - Re-deploy the build unchanged if a proxy, CDN or partial upload altered its files.
NF_COMPONENTS_SIGNING_KEY="$(cat signing-key.pem)" vite buildUseful Links
NF-026: Unsupported @module-federation/vite version
The @module-federation/vite that @next-federation/vite resolved is not the version it supports, 1.24.0. nextFederationComponents relies on undocumented...
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...