Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My React Native wallet doesn't listen for session proposals on the first launch. However, after reloading the app, the listener starts working automatically. #3668

Closed
adnansudozai opened this issue Sep 18, 2023 · 4 comments
Assignees
Labels
type: bug Something isn't working

Comments

@adnansudozai
Copy link

When i run my react native app on first time this return an error after pairing is success but before pairing return this error

Screenshot 2023-09-18 at 7 05 04 PM

{context: 'core'} {context: 'core/relayer'} TypeError: this.events.off is not a function
at JsonRpcProvider.off (provider.js:26:21)
at ot.unregisterProviderListeners (index.cjs.js:1:38935)
at ot. (index.cjs.js:1:37342)
at Generator.next ()
at asyncGeneratorStep (asyncToGenerator.js:3:24)
at _next (asyncToGenerator.js:22:9)
at asyncToGenerator.js:27:7
at web3.min.js:2:581704
at new t (web3.min.js:2:581768)
at ot. (asyncToGenerator.js:19:12)

@adnansudozai adnansudozai added the type: bug Something isn't working label Sep 18, 2023
@adnansudozai
Copy link
Author

Screenshot_20230918-205805

@ignaciosantise
on my react native app show this when I rerun my app its working fine

@ganchoradkov
Copy link
Member

Hey @adnansudozai, could you provide a small repo where we could reproduce the error?
Most likely you have some polyfills of EventEmitter that is causing issues as it should be available by default

@adnansudozai
Copy link
Author

adnansudozai commented Sep 20, 2023

@ganchoradkov
Thanks
My problem is solve when i downgrade my wallet connect version to
"@walletconnect/utils": "2.9.2",
"@walletconnect/react-native-compat": "2.9.2",
"@walletconnect/core": "2.9.2",

I don't now whats the problem on latest version wit react native version
"react-native": "^0.70.0",
"react": "18.1.0",

@niklasnatter
Copy link

Hey everybody, we encountered a similar issue today and summarised how we solved it here: #4064 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants