Path.split no es una función inputRef useForm

<input ref={register({ required: true })} name="test" />
Frightened Fox