sdk6.1.3 init error

node_modules/@solana/web3.js/lib/index.browser.esm.js: Support for the experimental syntax ‘logicalAssignment’ isn’t currently enabled (607:26):

605 | for (const accountMeta of ix.keys) {
606 | const keyMeta = getOrInsertDefault(accountMeta.pubkey);

607 | keyMeta.isSigner ||= accountMeta.isSigner;
| ^
608 | keyMeta.isWritable ||= accountMeta.isWritable;
609 | }
610 | }

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()
}, [])

“dependencies”: {
@types/node”: “20.4.1”,
@types/react”: “18.2.14”,
@types/react-dom”: “18.2.6”,
@web3auth/modal”: “^6.1.3”,
“eslint”: “8.44.0”,
“eslint-config-next”: “13.4.9”,
“ethers”: “^6.6.2”,
“next”: “13.4.9”,
“react”: “18.2.0”,
“react-dom”: “18.2.0”,
“typescript”: “5.1.6”
}

Hi @chenguoliang, just to confirm, have you cloned our evm react modal example?

@maharshi ,HI,When I was next, I cloned nextjs-evm-modal-example .I can’t run it.

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.

Okay, thank you. Looking forward to your next version of the fix. If possible, I would like to know an estimated time.

1 Like

@chenguoliang You can expect to have the fix by tomorrow. I’ll keep you posted on this thread. I’ll keep this open till I push the fix.

@chenguoliang Can you please take the latest pull and check? This has been fixed for a while now.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.