Skip to content
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

HTML/JS Platform integration error #1368

Open
mzbanez opened this issue Feb 24, 2023 · 4 comments
Open

HTML/JS Platform integration error #1368

mzbanez opened this issue Feb 24, 2023 · 4 comments

Comments

@mzbanez
Copy link

mzbanez commented Feb 24, 2023

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:

    <script src="https://cdn.jsdelivr.net/npm/buffer@6"></script>
  2. 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
Copy link

Did you find a fix for it?

@danieljao
Copy link

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

@blacklionmedia
Copy link

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

@rohankshah
Copy link

rohankshah commented Sep 18, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants