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...
Why This Error Occurred
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 plain form can submit before hydration, and the submission goes to the host page instead of the remote.
Possible Ways to Fix It
-
Replace
<form action={...}>with<Form action={...}>from@next-federation/island. It stays disabled until the island has hydrated:import { Form } from '@next-federation/island' export function AddToCart({ action }: { action: (data: FormData) => void }) { return ( <Form action={action}> <button type="submit">Add</button> </Form> ) }
Useful Links
NF-034: A client module imports a 'use server' file
The island build failed because a browser or SSR module imports a file that starts with 'use server'. In an island remote, Server Actions reach client...
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...