扫码关注官方订阅号
在`@hookform/resolvers`中找不到导入为`yupResolver`的导出项(可能的导出项有:`toNestError`、`validateFieldsNatively`)。我尝试导入`yupResolver`,但它在`@hookform/resolvers`中不存在。
import { yupResolver } from "@hookform/resolvers";
用这个
import { yupResolver } from '@hookform/resolvers/yup';
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
import { yupResolver } from "@hookform/resolvers";用这个
import { yupResolver } from '@hookform/resolvers/yup';