appkit
appkit copied to clipboard
[bug] TypeError: connection.connector.getChainId is not a function
Link to minimal reproducible example
NA
Summary
import {useAccount, useSignMessage} from 'wagmi';
const { signMessageAsync } = useSignMessage()
signMessageAsync({message}).then(console.log).catch(console.error);
Node version: v20.18.1
Error coming up:
TypeError: connection.connector.getChainId is not a function
at getConnectorClient (chunk-GDJLVM3D.js?v=9cbb6ee6:2047:55)
at signMessage2 (chunk-GDJLVM3D.js?v=9cbb6ee6:2836:20)
at Object.mutationFn (wagmi.js?v=61a6890d:1061:14)
at Object.fn (chunk-4OQJYHHP.js?v=9cbb6ee6:1192:29)
at run (chunk-4OQJYHHP.js?v=9cbb6ee6:494:49)
at Object.start (chunk-4OQJYHHP.js?v=9cbb6ee6:536:9)
at _a6.execute (chunk-4OQJYHHP.js?v=9cbb6ee6:1228:56)
List of related npm package versions
"ethers": "^6.13.4",
Node.js Version
v20.18.1
Package Manager
Closing as a duplicate of #3929