NF-002: Invalid federation configuration
The object passed to defineFederation() or withNextFederation(), or an island component option, failed validation. The message names the offending path.
Why This Error Occurred
The object passed to defineFederation() or withNextFederation(), or an island component option, failed validation. The message names the offending path.
Possible Ways to Fix It
-
Plain
httpURL: usehttps. Plainhttpis accepted only for localhost, in development and test, or withallowInsecureHttp: true.remotes: { shop: { origin: 'https://shop.example.com' } } -
cacheComponentson Next.js 15: remove it, or upgrade to Next.js 16. -
blockingwithoutprivate: remove it, or make the islandprivate. -
Missing
react-server-dom-webpack: install it at exactly your React's version:npm install --save-exact react-server-dom-webpack@<react version> -
A warning from a components remote's dev server: keep the standalone app in its own Vite config.
Useful Links
NF-001: Unknown remote
A host asked for a remote name that is not declared in defineFederation(). The cause is a typo, a missing entry, or a config that was not loaded on this...
NF-003: Unsupported island protocol version
An envelope declared a protocol version this host does not understand. Host and remote run different major versions of the island protocol.