-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overwrite TextInput.jsx: formik.getFieldProps is not a function #38
Comments
Is there any usage of |
I don`t see any usage of getFieldProps inside the TextInput Component. Actually, i only copied the original file from reactcheckout source to my own folder as shown in the documentation here. I did not change anything more than modifing the imports. |
@aterjung Do you have its usage anywhere else in your project? |
@rajeev-k-tomy the TextInput or the Formik context? Not for myself, but i copied the ShippingAddressForm.jsx as well, there is the original TextInput used. |
@aterjung I was asking whether there is any occurance of |
@rajeev-k-tomy no, it is not. I greped for it and the only places found are inside the node_modules directory. Cannot read properties of undefined (reading 'touched') but this is more irritating than the first error to me. |
I am not quite getting it. But you can put a console command inside |
Hi,
i have some trouble overwriting
src/reactapp/src/components/common/Form/TextInput.jsx
Component to realise some custom styling. When i add a copy of the Component:
app/code/AktWeb/HyvaCheckout/reactapp/src/components/common/Form/TextInput.jsx
And modifiy the imports:
import { _replace } from '@hyva/react-checkout/utils';
import { formikDataShape } from '@hyva/react-checkout/utils/propTypes';
The checkout is broken with these Errormessage in the JS-Console:
bundle.js:39996 Uncaught TypeError: formik.getFieldProps is not a function
at Field (bundle.js:39996:22)
at renderWithHooks (bundle.js:61000:22)
at mountIndeterminateComponent (bundle.js:64286:17)
at beginWork (bundle.js:65582:20)
at HTMLUnknownElement.callCallback (bundle.js:50592:18)
at Object.invokeGuardedCallbackDev (bundle.js:50636:20)
at invokeGuardedCallback (bundle.js:50693:35)
at beginWork$1 (bundle.js:70567:11)
at performUnitOfWork (bundle.js:69814:16)
at workLoopSync (bundle.js:69737:9)
Could you imagine what is the reason for the error? Im lost at the moment.
thanks in advance
The text was updated successfully, but these errors were encountered: