Web3Auth / web3auth-web

Simple infrastructure that enables Web3 wallets and applications to provide seamless user logins for both mainstream and Web3.0 users.
https://web3auth.io/docs
Other
426 stars 229 forks source link

ReferenceError: self is not defined when using umd version #1091

Open xpluscal opened 1 year ago

xpluscal commented 1 year ago

Describe the bug

When using the umd version like this:

import { Web3Auth } from "@web3auth/modal/dist/modal.umd.min.js";

I am getting this error:

ReferenceError: self is not defined

This is using version 4.0.0 of web3auth/modal

Thank you!

shahbaz17 commented 1 year ago

Hey @xpluscal

Could you share more details about this error?

Code snippet, browser's console screenshots, language/framework, browser, etc