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...
Why This Error Occurred
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 them out. For a private island this can include cookies, headers, your getIdentity result and the island token. The message names the cause: the library runs from outside node_modules (linked), or --disable-source-maps is set. Production builds never contain this.
Possible Ways to Fix It
-
Keep the dev server on your machine:
next dev -H 127.0.0.1 -
Drop
--disable-source-maps. -
Install packed packages (
pnpm pack) instead of linking, or usenext build && next start.
Useful Links
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...
NF-038: Server Action request failed
A Server Action request got a response that is not a Server Action response and carries no NF code: a 5xx, an unexpected status or content type, no body...