-
Notifications
You must be signed in to change notification settings - Fork 435
Closed
Labels
Description
Description
pnpm init
pnpm add @docsearch/react react search-insightsWe get the following warnings:
Zod v3/v4 is a peerDependency of Vercel AI SDK, but DocSearch doesn't depend on this lib. It's only a devDependency, and afaik the DocSearch v4 instructions do not say we should install Zod manually in our project.
Can also be seen with Yarn yarn explain peer-requirements:
p9cf0e → ✘ @docsearch/react@npm:4.0.0 [3d0d2] doesn't provide zod to @ai-sdk/react@npm:2.0.44 [7f775] and 3 other dependencies
Expected behavior
Either:
- You depend on Zod as a regular dependency
- You depend on Zod as a peerDependency, and document that users are responsible for installing it in their project
Environment
- pnpm / yarn
- DocSearch version: 4.0.0
Reactions are currently unavailable