Content pfp
Content
@
https://opensea.io/collection/neynar-1
0 reply
0 recast
0 reaction

0xOmen pfp
0xOmen
@0x-omen.eth
This feels taboo but I need help Vibe coding an app that sends transactions to my smart contract on Base. It's built off @neynar mini-app kit. Transactions work fine on mobile but on desktop I get the error "transaction failed: TypeError: r.connector.getChainId is not a function" Cursor has been unable to solve this nor has searching online. It seems to be an issue with WAGMI and the connection to the FC wallet on browser. Oddly, if I refresh the mini-app and try the exact same transaction a 2nd time it works but that's bad UX... Any suggestions appreciated
2 replies
1 recast
5 reactions

Manan pfp
Manan
@manan
When encountering the error, are you opening the mini app on the farcaster mini app debug tool or from within a cast?
1 reply
0 recast
0 reaction

0xOmen pfp
0xOmen
@0x-omen.eth
It occurs both in the developer preview context as well as when loaded from the Mini Apps tab I decided to publish and claim the Manifest to see if that solved the issue but it didn't It works fine on the mobile app and on desktop the error disappears if i refresh the app and try the exact same action again but I have to do that for every transaction on desktop
1 reply
0 recast
1 reaction

0xOmen pfp
0xOmen
@0x-omen.eth
1 reply
0 recast
1 reaction

Manan pfp
Manan
@manan
Which farcaster mini app sdk action are you calling right before this error shows up? Possible to get a deeper stack trace from local? @deodad in case you have seen this error before with the wagmi connector
1 reply
0 recast
0 reaction

0xOmen pfp
0xOmen
@0x-omen.eth
I'm not smart enough to know exactly what you're asking but I'll try I attached a screenshot of my code in question (truncated for readability, ignore the compiler error warnings) as well as what I get pointed to by my browser console. If there is something else you'd like I can try to provide it
1 reply
0 recast
0 reaction

0xOmen pfp
0xOmen
@0x-omen.eth
Here is an error when running locally/tunneled
0 reply
0 recast
0 reaction