Skip to content

zod v4无法正常运行 #7148

@oneQiu

Description

@oneQiu

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

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions