-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File uses global instead of globalThis #416
Comments
thanks for calling this out! Nice find. |
FYI the issue isn't fixed yet. The error was that - if (typeof global.Buffer === 'undefined') {
+ if (global && typeof global.Buffer === 'undefined') { ...still attempts to use the The solution is to replace all usage of
|
LIT-Protocol#416 (comment) Signed-off-by: Gilbert <gilbertbgarza@gmail.com>
Is there an existing issue for this?
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
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 ofglobal
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
The text was updated successfully, but these errors were encountered: