You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have got this error from this part of code(})(ActivityForm);):
Argument of type '(props: IProps) => Element' is not assignable to parameter of type 'CompositeComponent<object & FormikSharedConfig<{}> & FormikState & FormikHelpers & FormikHandlers & FormikComputedProps & FormikRegistration & { ...; }>'.
Type '(props: IProps) => Element' is not assignable to type 'FunctionComponent<object & FormikSharedConfig<{}> & FormikState & FormikHelpers & FormikHandlers & FormikComputedProps & FormikRegistration & { ...; }>'.
Types of parameters 'props' and 'props' are incompatible.
Property 'setEditMode' is missing in type 'FormikSharedConfig<{}> & FormikState & FormikHelpers & FormikHandlers & FormikComputedProps & FormikRegistration & { ...; } & { ...; }' but required in type 'IProps'.ts(2345)
ActivityForm.tsx(7, 3): 'setEditMode' is declared here.
I tried to add strongly typed in Formik react library by typescript, but I didn't do that. Of course, I have used this link, but I couldn't solve my issue.
https://jaredpalmer.com/formik/docs/guides/typescript
I have got this error from this part of code(})(ActivityForm);):
The text was updated successfully, but these errors were encountered: