Skip to content

Stagehand's Zod pinged version causes warnings #1266

@tonatiuh

Description

@tonatiuh

With Stagehand 3.0.2, this package.json

{
  "name": "my-stagehand-app",
  "type": "module",
  "scripts": {
    "build": "tsc",
    "start": "tsx index.ts"
  },
  "dependencies": {
    "@browserbasehq/stagehand": "^3.0.2",
    "dotenv": "^16.4.7"
  },
  "devDependencies": {
    "tsx": "^4.19.2",
    "typescript": "^5.0.0"
  }
}

I'm getting this warnings like this one when running $ npm install

npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @ai-sdk/[email protected]
npm warn Found: [email protected]
npm warn node_modules/zod
npm warn   peer zod@"3.25.67" from @browserbasehq/[email protected]
npm warn   node_modules/@browserbasehq/stagehand
npm warn     @browserbasehq/stagehand@"^3.0.2" from the root project
npm warn   5 more (@langchain/core, @langchain/openai, ...)
npm warn

that appears to be because Stagehand has pinned Zod to version 3.25.67 whereas those other packages require Zod ^3.25.76 (package.json at npm package)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions