appkit icon indicating copy to clipboard operation
appkit copied to clipboard

[bug] TypeError: connection.connector.getChainId is not a function

Open PanoSui opened this issue 1 year ago • 5 comments

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

[email protected]

PanoSui avatar Feb 26 '25 21:02 PanoSui

Hi @ppsimatikas

Do you have a reproducible example we can take a look at?

Sam-Newman avatar Feb 26 '25 21:02 Sam-Newman

https://github.com/ppsimatikas/reown_issue

PanoSui avatar Feb 26 '25 22:02 PanoSui

do you have a preview link we can use?

Sam-Newman avatar Mar 03 '25 12:03 Sam-Newman

Unfortunately not. I have restarted my browser and it seems like it got solved... Very weird behavior.

I am closing the issue for now.

PanoSui avatar Mar 04 '25 05:03 PanoSui