I'm getting this error when running this in Remix / React. It doesn't seem to break anything, but I hate seeing big red errors in the console - what am I missing?
Warning: Failed prop type: The propmetadatais marked as required inForwardRef(PhoneInputWithCountry2), but its value isundefined. at PhoneInputWithCountry2 (http://localhost:4200/build/_sh
import PhoneInputWithCountry from 'react-phone-number-input/react-hook-form'
import { E164Number } from 'libphonenumber-js'
<PhoneInputWithCountry
name={field.key}
control={control}
defaultCountry={'US'}
defaultValue={(field?.options?.defaultValue as E164Number) ?? ''}
rules={{ required: true, validate: isPossiblePhoneNumber }}
placeholder={field?.options?.placeholder ?? 'Phone number'}
/>
I'm getting this error when running this in Remix / React. It doesn't seem to break anything, but I hate seeing big red errors in the console - what am I missing?
Warning: Failed prop type: The prop
metadatais marked as required in
ForwardRef(PhoneInputWithCountry2), but its value is
undefined. at PhoneInputWithCountry2 (http://localhost:4200/build/_sh