How to solve adding metamask adapter

Hi.
I would like to add metamask adapter.
But facing a problem now.
Could someone suggest some solutions?

Screenshot 2023-02-24 at 14 46 29

Screenshot 2023-02-24 at 14 46 38

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const web3auth = new Web3Auth({ clientId, web3AuthNetwork: "development", // mainnet, aqua, celeste, cyan or testnet chainConfig: { chainNamespace: CHAIN_NAMESPACES.EIP155, chainId: "0x1", rpcTarget: "https://rpc.ankr.com/eth", // This is the public RPC we have added, please pass on your own endpoint while creating an app }, })
    const metamaskAdapter = new MetamaskAdapter({
      clientId,
      sessionTime: 3600, // 1 hour in seconds
      chainConfig: {
        chainNamespace: CHAIN_NAMESPACES.EIP155,
        chainId: &quot;0x1&quot;,
        rpcTarget: &quot;https://rpc.ankr.com/eth&quot;, // This is the public RPC we have added, please pass on your own endpoint while creating an app
      },
    });
    web3auth.configureAdapter(metamaskAdapter);"><pre class="notranslate"><code class="notranslate">const web3auth = new Web3Auth({
      clientId, 
      web3AuthNetwork: "development", // mainnet, aqua, celeste, cyan or testnet
      chainConfig: {
        chainNamespace: CHAIN_NAMESPACES.EIP155,
        chainId: "0x1",
        rpcTarget: "https://rpc.ankr.com/eth", // This is the public RPC we have added, please pass on your own endpoint while creating an app
      },
    })

    const metamaskAdapter = new MetamaskAdapter({
      clientId,
      sessionTime: 3600, // 1 hour in seconds
      chainConfig: {
        chainNamespace: CHAIN_NAMESPACES.EIP155,
        chainId: "0x1",
        rpcTarget: "https://rpc.ankr.com/eth", // This is the public RPC we have added, please pass on your own endpoint while creating an app
      },
    });
    web3auth.configureAdapter(metamaskAdapter);



Originally posted by: shunsuke-h-opn

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/1370