question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(react-native-dapp) Unable to connect to wallet

See original GitHub issue

I installed the @walletconnect/react-native-dapp package, but on calling the connect() function, I get this error:

TypeError: undefined is not an object (evaluating 'this._qrcodeModal').

I’m running the app on a physical Android device. The code for the app is available here: https://github.com/overthq/Quiz. I call the connect function here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
koredefashokuncommented, Apr 7, 2021

Great! Thanks so much.

1reaction
koredefashokuncommented, Apr 6, 2021

Hey @cawfree. Thanks so much for your help (especially pulling the repo). I tried your suggestion, and it seems it might not be the issue. Here’s what the stack trace looks like (not sure if it exposes a whole lot, as it doesn’t point to any files in the @walletconnect/react-native-dapp package). I’m starting to think it might be an error in my implementation.

TypeError: undefined is not an object (evaluating 'this._qrcodeModal')
_callee3$@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:159616:27
tryCatch@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:25032:23
invoke@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:25205:32
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:158846:75
tryCallTwo@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:27123:9
doResolve@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:27287:25
Promise@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:27146:14
__awaiter@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:158825:38
onPress@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:215652:23
_performTransitionSideEffects@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:55625:22
_receiveSignal@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:55567:45
onResponderRelease@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:55476:34
invokeGuardedCallbackImpl@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:9234:21
invokeGuardedCallback@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:9328:42
invokeGuardedCallbackAndCatchFirstError@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:9332:36
executeDispatch@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:9404:48
executeDispatchesInOrder@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:9424:26
executeDispatchesAndRelease@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:10499:35
forEach@[native code]
forEachAccumulated@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:9566:22
runEventsInBatch@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:10523:27
runExtractedPluginEventsInBatch@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:10602:25
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:10578:42
batchedUpdates$1@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:21227:20
batchedUpdates@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:10485:36
_receiveRootNodeIDEvent@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:10577:23
receiveTouches@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:10630:34
__callFunction@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2794:36
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2526:31
__guard@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2748:15
callFunctionReturnFlushedQueue@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2525:21
callFunctionReturnFlushedQueue@[native code]

By the way, this has been my best experience reporting an issue with any package (especially in the React Native community)!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot connect the wallet with @walletconnect/react-native ...
I setup wallet connect following the docs https://docs.walletconnect.com/1.0/quick-start/dapps/react-native , it working , but linking to ...
Read more >
Wallet linking fails on Android · Issue #12 - GitHub
I created a new project with create-react-native-dapp today, and having problems connecting to a wallet with the button in the app.
Read more >
Connect crypto wallet with react native : r/reactnative - Reddit
Hi, does anyone have experience or know how to connect a crypto wallet to a mobile app with react native? I know it...
Read more >
WalletConnect (Metamask Mobile) configuration with React ...
Connect React Native (expo or xcode) Mobile App to Metamask Mobile Application with the help of Walletconnect.
Read more >
@walletconnect/react-native-dapp - npm
A drop-in library which helps easily connect your React Native ... able to make a call to useWalletConnect directly from the App component....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found