Skip to content

Buffer is undefined #2499

@Pita

Description

@Pita

Describe the bug

Hello,

we are using the stripe npm package within convex, which has a limited node.js enviroment, very similar to Cloudflare workers. After a recent upgrade, we started getting the Error, Buffer is undefined. Searching through the code, I think I managed to narrow it down to this commit: 8f765db

Rather than Buffer it should use a library that is available in all javascript enviroments, not just node.js.

Thank you very much

To Reproduce

Do any sort of network request with stripe

Expected behavior

It works

Code snippets

OS

macOS

Node version

22

Library version

19.3.0

API version

2025-10-29.clover

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions