Path.split não é uma função inputref useform

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