响应 yup 错误类型“未定义”不能用作索引类型。 TS2538 - React with yup error Type 'undefined' cannot be used as an index type. TS2538
我正在使用 yup 使表单无效,当它们无效时我希望这个函数返回错误,但它总是在validationErrors [error.path] 中给出错误,它得到类型“未定义”不能用作索引类型 ...