Errors
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...
Why This Error Occurred
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 side of the build.
Possible Ways to Fix It
-
Check the name against the
remotesmap, and that the host imports that config module:// federation.ts export const federation = defineFederation({ remotes: { shop: { origin: 'https://shop.example.com' } }, })
Useful Links
Error codes
Every next-federation error carries a code, NF-001 and up, and links to a page that says what happened, why and how to fix it.
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.