NF-036: Host does not provide a shared module version the remote component accepts
A remote component imports a module its remote lists in shared as host-provided, and the host does not provide it or provides a version outside...
Why This Error Occurred
A remote component imports a module its remote lists in shared as host-provided, and the host does not provide it or provides a version outside requiredVersion. The host renders the fallback and the page still answers 200.
Possible Ways to Fix It
-
React outside the range: widen the remote's
reactrange (for example'^18.3.0 || ^19.0.0') and rebuild, or upgrade the host's React. -
Next.js hosts: create components with
@next-federation/next/components(App Router) or@next-federation/next/pages/components(Pages Router). -
Any other shared module: pass it from the host with its real version:
shared: { '@acme/ui': { version: '2.4.0', module: AcmeUi } } -
Set
fallback: trueon the entry in the remote'ssharedif it can run with its own copy. React andnext/*never fall back.
Useful Links
NF-035: Island form uses a raw action instead of <Form>
A component passes a Server Action to a plain <form action={...}>, or to a formAction outside a <Form>. Islands have no progressive enhancement, so a...
NF-037: Under next dev, private island values may reach the browser
Under next dev, React sends awaited Server Component values to the browser as debug info, and for @next-federation/next Next's dev tooling may not leave...