tahir
January 12, 2024, 6:33am
1
Archived Content from Web3Auth Community
This topic was originally posted by tahir on 1/12/2024.
This content has been migrated from our previous community forum to preserve valuable discussions.
Giving Invalid hook error, If I disabled the useEffect then this error goes.
How to fix?
vjgee
January 12, 2024, 6:34am
2
@tahir Welcome Aboard!
Please refer to this thread where the issue has been addressed:
SDK Version: 7.2.0
Platform: React + Vite
Browser Console Screenshots:
[image]
const web3auth = new Web3Auth({
clientId: import.meta.env.VITE_WEB3_AUTH_CLIENT,
web3AuthNetwork: "sapphire_mainnet", // Web3Auth Network
chainConfig: {
chainNamespace: "eip155",
chainId: "0x1",
rpcTarget: "https://rpc.ankr.com/eth",
displayName: "Ethereum Mainnet",
blockExplorer: "https://goerli.etherscan.io",
ticker: "ETH",
tickerName: …
tahir
January 12, 2024, 9:02am
3
I can not update my node_modules it can create many conflicts in current application.
It is big project.
Is there any way to fix it?
May be older version of Web3Auth dependencies?