Received request from Uniform to render a component with the public ID: formPage.
<UniformComposition /> does not have formPage mapped to a React component yet.
import {
ComponentProps,
UniformSlot,
} from '@uniformdev/canvas-next-rsc/component';
type FormPageParameters = {
displayName: string
resourceKeys: unknown
};
type FormPageSlots = 'form';
type FormPageProps = ComponentProps<FormPageParameters, FormPageSlots>;
export const FormPageComponent = (props: FormPageProps) => {
return (
<div>
<div>
<UniformSlot data={props.component} context={props.context} slot={props.slots.form} />
</div>
</div>
);
};
Add this component mapping to your resolveComponent function on UniformComposition.<UniformComposition /> is defined, for example import "../../components/FormPage.tsx"
Need more help? Check out the documentation.