Skip to content

Browser bundle error related to crypto after 2.23.8 #7197

@imaksp

Description

@imaksp

Describe the bug
Getting following build error after @walletconnect/ethereum-provider update to 2.23.8

✘ [ERROR] Could not resolve "crypto"

    node_modules/.pnpm/@walletconnect+core@2.23.8_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/@walletconnect/core/dist/index.js:10:7:
      10 │ import "crypto";
         ╵        ~~~~~~~~

  The package "crypto" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.

To Reproduce
Steps to reproduce the behavior:

  • try to build Angular ESbuild project using @walletconnect/ethereum-provider 2.23.8

Expected behavior
It should build without any error like with previous release

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions