Solve this issue by using {...register('email', { required: true })} in the register. Source : [Stackoverflow](https://stackoverflow.com/questions/66970743/how-can-i-solve-typeerror-path-split-is-not-a-function)
Solve this issue by using {...register('email', { required: true })} in the register.
Source : Stackoverflow