Skip to content

Commit 3f18bd4

Browse files
committed
docs: add Zod version compatibility note for Stagehand
Fixes: #25652
1 parent 5df284a commit 3f18bd4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,24 @@ Install the necessary dependencies:
4242
npm ci
4343
```
4444

45+
:::note
46+
Stagehand 2.5 does not fully support Zod 4 yet, so you need to ensure you have Zod 3.x installed, as well as `zod-to-json-schema`. In `package.json`, ensure that the dependencies are set as follows:
47+
48+
```json
49+
{
50+
// ...
51+
"dependencies": {
52+
"@browserbasehq/stagehand": "^2.5.0",
53+
"@cloudflare/playwright": "^1.0.0",
54+
"zod": "^3.25.76",
55+
"zod-to-json-schema": "^3.24.6"
56+
// ...
57+
}
58+
}
59+
```
60+
:::
61+
62+
4563
### 2. Configure your Worker
4664

4765
Update your wrangler configuration file to include the bindings for Browser Rendering and [Workers AI](/workers-ai/):

0 commit comments

Comments
 (0)