Skip to content

Polyfill buffer usage breaks Cloudflare Workers nodejs_compat_v2 #1130

@cayter

Description

@cayter

Cloudflare Workers will now support better NodeJS compatibility as announced here. However, the package currently relies on iron-webcrypto that uses buffer polyfill and it leads to nodejs_compat_v2 facing the issue below:

Screenshot 2024-09-17 at 12 47 11 PM

Current workaround

Replace buffer/index.js with node:buffer in the node_modules deps before the build step.

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