Skip to content

Commit 7463a2a

Browse files
authored
docs: add Zod version compatibility note for Stagehand (#25720)
Fixes: #25652
1 parent 83f853a commit 7463a2a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/content/docs/browser-rendering/platform/stagehand.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,21 @@ Then, in your Worker code, import the `workersAIClient.ts` file and use it to co
150150

151151
:::note
152152
The snippet above requires [Zod v3](https://v3.zod.dev/) and is currently not compatible with Zod v4.
153+
154+
Ensure your `package.json` has the following dependencies:
155+
156+
```json
157+
{
158+
// ...
159+
"dependencies": {
160+
"@browserbasehq/stagehand": "^2.5.0",
161+
"@cloudflare/playwright": "^1.0.0",
162+
"zod": "^3.25.76",
163+
"zod-to-json-schema": "^3.24.6"
164+
// ...
165+
}
166+
}
167+
```
153168
:::
154169

155170
### 4. Build the project

0 commit comments

Comments
 (0)