harsh-harlequin
harsh-harlequinā€¢17mo ago

type 'FormPropsType'

Getting this error message when following the guide - ERROR in src/App.tsx:81:17 TS2322: Type '{ initialValues: { email: string; password: string; }; }' is not assignable to type 'FormPropsType'. Property 'onSubmit' is missing in type '{ initialValues: { email: string; password: string; }; }' but required in type '{ onSubmit: (values: any) => void; }'. 79 | }, 80 | ]}
81 | formProps={{
| ^^^^^^^^^ 82 | initialValues: { 83 | email: "info@refine.dev", 84 | password: "refine-supabase", How do I fix this? Thanks
9 Replies
Omer
Omerā€¢17mo ago
Hey @icj_ šŸ‘‹, Can you share your app.tsx file?
Omer
Omerā€¢17mo ago
| refine
component from refine is a authentication page that can be used to login, register, forgot password and update password.
harsh-harlequin
harsh-harlequinā€¢17mo ago
file uploaded
Omer
Omerā€¢17mo ago
Thank you. If you don't need formProps you can delete it
harsh-harlequin
harsh-harlequinā€¢17mo ago
Thank you! All new to web programming. That was part of the install when following the guide.
Omer
Omerā€¢17mo ago
Can you share the guide?
harsh-harlequin
harsh-harlequinā€¢17mo ago
I picked Mantine with example pages during install oh, and supabase as the data provider
Omer
Omerā€¢17mo ago
In the tutorial, the REST API data provider is selected by default. How did you choose Supabase?