-
Notifications
You must be signed in to change notification settings - Fork 21
Error - Uncaught in promise (purser-metamask) #197
Comments
This seems to crash when On another note, while this most likely isn't the cause, we don't officially support I'll investigate. |
Also, which version of |
Thanks for any help on this! |
Tried running the code in Firefox with a fresh install of Metamask (the above error was from Chrome) and get a slightly different error:
FYI, the I don't think this is an Angular issue, since I am running
|
Turns out I've set up a repo that replicates this in a controlled environment: rdig/purser-node10 I'll refactor the code and push a patch release for this later today. Good catch! 🎉 |
Upon further investigation, I was somewhat correct in my initial assumption that this is a
Most likely I'll end up pinning the |
I have cloned the repo and tested after I updated to Node 10.15, same errors as before. Will comment about purser-trezor in the other issue after testing. Chrome: |
FYI, just pulled in the new code from your release candidate 2.1.1 into my project. Worked like a charm, thanks for your help on this! |
I just released version
Thanks for you help! |
Error: Uncaught (in promise): Error: Metamask extension could not be accessed. Please ensure that it is enabled and it's not locked Error: Cannot read property '_state' of undefined
So I'm calling
metamask.open()
inside my project, and Metamask is enabled and unlocked.global.ethereum
is also in scope and I can see it in the console. And the first time I callopen
the popup window appears in the browser asking me to grant permissions for Colony to access Metamask. But then I get the error mentioned above. Packages seem to be up to date inpackage.json
. I have tried disabling/reenabling Metamask, and have tried on localhost network in addition to testnets like Rinkeby, same error.I tried adding some console statements inside the switch statement in
purser-metamask/es/index.js
and I get the following context information in case that is of any use for troubleshooting. Do you have any insight as to why I'm getting this error?The text was updated successfully, but these errors were encountered: