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
419 stars 227 forks source link

HTML/JS Platform integration error #1368

Open mzbanez opened 1 year ago

mzbanez commented 1 year ago

We are planning to integrate your software using HTML/JS platform for our company's project. We followed your sample code from the documentation link:

https://web3auth.io/docs/integration-builder?lang=HTML&chain=ETH&evmFramework=WEB3&customAuth=NONE&mfa=DEFAULT&whitelabel=NO&useModal=YES&web3AuthNetwork=TESTNET&rnMode=EXPO&stepIndex=0&stepIndex=0

However, upon running your code as is (no modifications yet, aside from the client id obtained from your company dashboard, as instructed), these are the following issues encountered:

  1. index.js:11 Uncaught ReferenceError: require is not defined -this seems to be originating from this source:

    1. Uncaught (in promise) ReferenceError: Web3Auth is not defined -this error is from the constructor of web3auth const web3auth = new Web3Auth({ clientId, web3AuthNetwork: "testnet", chainConfig: { chainNamespace: "eip155", chainId: "0x1", rpcTarget: "https://rpc.ankr.com/eth", }, });

Looking forward to your response regarding these issues. Thank you.

rohankshah commented 1 year ago

Did you find a fix for it?

danieljao commented 1 year ago

@mzbanez can i ask if you were able to resolve this issue?

blacklionmedia commented 12 months ago

@mzbanez were you able to find a solution to this?

rohankshah commented 12 months ago

Unfortunately no, we weren't able to solve this issue.

On Mon, 18 Sep, 2023, 4:24 pm Black Lion Media, @.***> wrote:

@mzbanez https://github.com/mzbanez were you able to find a solution to this?

— Reply to this email directly, view it on GitHub https://github.com/Web3Auth/web3auth-web/issues/1368#issuecomment-1723173864, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFMWTNZ66KIKKXLNP6TGSX3X3AR6JANCNFSM6AAAAAAVGMZJRQ . You are receiving this because you commented.Message ID: @.***>