#7148·ice

zod v4无法正常运行

Author: oneQiuCreated Nov 5, 2025Updated Nov 6, 2025
Labelsbug

Describe the bug

本地安装了react-hook-form 和@hookform/resolvers zod v4 ,然后从@hookform/resolvers/zod导出 zodResovler的时候会提示 zod v4模块找不到。看了一下貌似是因为它直接使用的是nodemodules下的zod,恰好ice/bundles使用了3.0的zod。所以现在的情况就是无法使用v4版本。

Image

Expected behavior

zod v4正常使用

Actual behavior

No response

Version of ice.js

3.6.1

Content of build.json or ice.config.mts

typescript

Additional context

No response