首页  >  问答  >  正文

在`@hookform/resolvers`中找不到导入为`yupResolver`的导出项(可能的导出项有:`toNestError`、`validateFieldsNatively`)。

<p>在`@hookform/resolvers`中找不到导入为`yupResolver`的导出项(可能的导出项有:`toNestError`、`validateFieldsNatively`)。我尝试导入`yupResolver`,但它在`@hookform/resolvers`中不存在。</p><p><br /></p>
P粉974462439P粉974462439473 天前456

全部回复(1)我来回复

  • P粉402806175

    P粉4028061752023-07-28 12:29:40

    import { yupResolver } from "@hookform/resolvers";

    用这个

    import { yupResolver } from '@hookform/resolvers/yup';

    回复
    0
  • 取消回复