Skip to content

fails if you have node25 installed on your system #3

@wizzard0

Description

@wizzard0

(the "use builtin node" flag in claude doesnt work for some reason)

The error from the Browserbase plugin was:

TypeError: Cannot read properties of undefined (reading 'prototype')
at ../../node_modules/.pnpm/buffer-equal-constant-time@1.0.1/node_modules/buffer-equal-constant-time/index.js

Specifically, this line failed:

var origSlowBufEqual = SlowBuffer.prototype.equal;

This is happening in the buffer-equal-constant-time dependency, which is used by the JWT authentication libraries (jwa → jws → gtoken) in the Browserbase/Stagehand package.

The issue is that SlowBuffer is undefined. This is likely because:

Node.js version incompatibility: You're running Node.js v25.2.1, which is a very recent version. SlowBuffer was deprecated in Node.js and removed in recent versions. The buffer-equal-constant-time@1.0.1 package is trying to access SlowBuffer.prototype which no longer exists.

The Browserbase plugin dependencies haven't been updated to work with Node.js v25.

To fix this, you would likely need to either:

Downgrade to an earlier Node.js version (like v18 or v20 LTS)
Wait for the Browserbase plugin to update its dependencies

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