deep-jade
deep-jade•2y 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•2y ago
Hey @icj_ 👋, Can you share your app.tsx file?
Omer
Omer•2y ago
| refine
component from refine is a authentication page that can be used to login, register, forgot password and update password.
deep-jade
deep-jade•2y ago
file uploaded
Omer
Omer•2y ago
Thank you. If you don't need formProps you can delete it
deep-jade
deep-jade•2y ago
Thank you! All new to web programming. That was part of the install when following the guide.
Omer
Omer•2y ago
Can you share the guide?
deep-jade
deep-jade•2y ago
I picked Mantine with example pages during install oh, and supabase as the data provider
Omer
Omer•2y ago
In the tutorial, the REST API data provider is selected by default. How did you choose Supabase?