Skip to content

File uses global instead of globalThis #416

Closed
@gilbert

Description

@gilbert

Is there an existing issue for this?

  • I have searched the existing issues

SDK version

3.0.32, but issue exists on master

Lit Network

N/A, trying to bundle package for browser

Description of the bug/issue

Can't find variable: global
../../node_modules/@lit-protocol/auth-browser/src/lib/chains/eth.js

which points to this line

Severity of the bug

Can't bundle for browser in a create-react-app

Steps To Reproduce

Using globalThis instead of global fixes the problem. The rest of the file also uses globalThis, so this would maintain consistency.

Link to code

No response

Anything else?

No response

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