Environment Information
Stagehand:
- Language/SDK: TypeScript
- Stagehand version: 3.0.8
AI Provider:
N/A
Issue Description
I am getting the following error after the first call to my API endpoint
Error: ID LocalBrowserLaunchOptions already exists in the registry
web-app:dev: > 1 | import { Stagehand } from "@browserbasehq/stagehand"
web-app:dev: | ^
The issue extends from the Zod package, reported here colinhacks/zod#5481 (comment). Though it has since been fixed in Zod v4.3.0.
Steps to Reproduce
- NextJS app with ElysiaJS as API backend
- Call API endpoint that imports Stagehand and observe it works successfully
- Call the same API endpoint again and observer the
Error: ID LocalBrowserLaunchOptions already exists in the registry error.
Minimal Reproduction Code
I do not have one.
Error Messages / Log trace
Error: ID LocalBrowserLaunchOptions already exists in the registry
web-app:dev: > 1 | import { Stagehand } from "@browserbasehq/stagehand"
web-app:dev: | ^
Screenshots / Videos
I do not have any.
Related Issues
Are there any related issues or PRs?
Environment Information
Stagehand:
AI Provider:
N/A
Issue Description
I am getting the following error after the first call to my API endpoint
The issue extends from the Zod package, reported here colinhacks/zod#5481 (comment). Though it has since been fixed in Zod v4.3.0.
Steps to Reproduce
Error: ID LocalBrowserLaunchOptions already exists in the registryerror.Minimal Reproduction Code
I do not have one.
Error Messages / Log trace
Screenshots / Videos
I do not have any.
Related Issues
Are there any related issues or PRs?