zod v4无法正常运行
- Dominant language
- TypeScript
- Stars
- 18.6k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
本地安装了react-hook-form 和@hookform/resolvers zod v4 ,然后从@hookform/resolvers/zod导出 zodResovler的时候会提示 zod v4模块找不到。看了一下貌似是因为它直接使用的是nodemodules下的zod,恰好ice/bundles使用了3.0的zod。所以现在的情况就是无法使用v4版本。
### 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_
Contributor guide
Research direction
Start by reproducing the issue with ice.js 3.6.1, react-hook-form, @hookform/resolvers/zod, and zod v4, focusing on the @hookform/resolvers/zod entry point and the ice/bundles dependency resolution described in the report. Done means zod v4 can be imported through zodResolver without a missing-module error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100