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