Skip to content

Issue with react app - cannot click, ethRequest issue #4

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

Open
maddefientist opened this issue Sep 2, 2022 · 0 comments
Open

Issue with react app - cannot click, ethRequest issue #4

maddefientist opened this issue Sep 2, 2022 · 0 comments

Comments

@maddefientist
Copy link

maddefientist commented Sep 2, 2022

Receiving this error in the browser console

Uncaught (in promise) TypeError: Cannot create property 'jsonrpc' on string 'eth_requestAccounts'
at l._rpcRequest (inpage.js:1:38191)
at l.sendAsync (inpage.js:1:41936)
at callApi (nft.js:62:1)

Did perhaps something chnage with how it calls to metamask or the account for info? It works when pushed to netlify to select wallet, but then after that nothing is clickable nor can you interact with any of the buttons anymore.

Thanks in advance for any info provided

EDIT: Some more errors, after metamask does connect but then does not show "connected" status

inpage.js:1 Uncaught (in promise) TypeError: Cannot create property 'jsonrpc' on string 'eth_requestAccounts'
at l._rpcRequest (inpage.js:1:38191)
at l.sendAsync (inpage.js:1:41936)
at App.js:109:20
at u (regeneratorRuntime.js:86:17)
at Generator._invoke (regeneratorRuntime.js:66:24)
at Generator.next (regeneratorRuntime.js:117:21)
at n (asyncToGenerator.js:3:20)
at c (asyncToGenerator.js:25:9)
App.js:163 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'methods')
at App.js:163:39
at u (regeneratorRuntime.js:86:17)
at Generator._invoke (regeneratorRuntime.js:66:24)
at Generator.next (regeneratorRuntime.js:117:21)
at n (asyncToGenerator.js:3:20)
at c (asyncToGenerator.js:25:9)
at asyncToGenerator.js:32:7
at new Promise ()
at asyncToGenerator.js:21:12
at l (App.js:95:10)
App.js:195 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'methods')
at App.js:195:39
at u (regeneratorRuntime.js:86:17)
at Generator._invoke (regeneratorRuntime.js:66:24)
at Generator.next (regeneratorRuntime.js:117:21)
at n (asyncToGenerator.js:3:20)
at c (asyncToGenerator.js:25:9)
at asyncToGenerator.js:32:7
at new Promise ()
at asyncToGenerator.js:21:12
at p (App.js:95:10)
App.js:160 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'methods')
at App.js:160:14
at u (regeneratorRuntime.js:86:17)
at Generator._invoke (regeneratorRuntime.js:66:24)
at Generator.next (regeneratorRuntime.js:117:21)
at n (asyncToGenerator.js:3:20)
at c (asyncToGenerator.js:25:9)
at asyncToGenerator.js:32:7
at new Promise ()
at asyncToGenerator.js:21:12
at i (App.js:95:10)
2App.js:160 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'methods')
at App.js:160:14
at u (regeneratorRuntime.js:86:17)
at Generator._invoke (regeneratorRuntime.js:66:24)
at Generator.next (regeneratorRuntime.js:117:21)
at n (asyncToGenerator.js:3:20)
at c (asyncToGenerator.js:25:9)
at asyncToGenerator.js:32:7
at new Promise ()
at asyncToGenerator.js:21:12
at onClick (App.js:95:10)
App.js:153 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'methods')
at App.js:153:45
at u (regeneratorRuntime.js:86:17)
at Generator._invoke (regeneratorRuntime.js:66:24)
at Generator.next (regeneratorRuntime.js:117:21)
at n (asyncToGenerator.js:3:20)
at c (asyncToGenerator.js:25:9)
at asyncToGenerator.js:32:7
at new Promise ()
at asyncToGenerator.js:21:12
at s (App.js:95:10)
3App.js:153 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'methods')
at App.js:153:45
at u (regeneratorRuntime.js:86:17)
at Generator._invoke (regeneratorRuntime.js:66:24)
at Generator.next (regeneratorRuntime.js:117:21)
at n (asyncToGenerator.js:3:20)
at c (asyncToGenerator.js:25:9)
at asyncToGenerator.js:32:7
at new Promise ()
at asyncToGenerator.js:21:12
at onClick (App.js:95:10)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant