TypeError: path.split is not a function e=react code example Example: TypeError: path.split is not a function <input {...register('test', { required: true })} />