hello.when i in next.js ;
error:
error ./node_modules/@ethereumjs/tx/dist/eip1559Transaction.js:6:0
Module not found: Package path ./keccak is not exported from package /Users/jelly/Desktop/social/node_modules/ethereum-cryptography (see exports field in /Users/jelly/Desktop/social/node_modules/ethereum-cryptography/package.json)
code:
“use client”
import Image from ‘next/image’
import styles from ‘./page.module.css’
import { Web3Auth } from “@web3auth/modal”;
import { useEffect } from ‘react’;
export default function Home() {
useEffect(() => {
const init = async () => {
//Initialize within your constructor
const web3auth = new Web3Auth({
clientId: “BMFbn-nG3Fk0k-igpEu4edzxvxmezCjgLAXRm29GVDVyUQTtYpAxm53WbHvR1VRm-aIqxsJ8oZO8MGDJZ6M”, // Get your Client ID from Web3Auth Dashboard
chainConfig: {
chainNamespace: “eip155”,
chainId: “0x5”, // Please use 0x5 for Goerli Testnet
rpcTarget: “https://rpc.ankr.com/eth”,
},
});
await web3auth.initModal();
}
init()
}, [])
Hi @chenguoliang, due to some sub-dependencies updating, we need some more packages. I am personally working on pushing the fix asap to the examples repo.
Although, if it is urgent I can help to get your next evm no modal example working.