node-metamask icon indicating copy to clipboard operation
node-metamask copied to clipboard

Errors using package with the latest version of web3

Open ryanchristo opened this issue 6 years ago • 1 comments

Description

node-metamask currently does not support the latest beta release of the web3 package. I received the following error running node-metamask with web3 version 1.0.0-beta.51:

Error: method.split is not a function

I was able to successfully run node-metamask with web3 version 1.0.0-beta.35. I have not yet tried to run it with any other versions between beta.35 and beta.51.

ryanchristo avatar Mar 29 '19 10:03 ryanchristo

You might to not be able to actually update to the lastest web3

We had this in purser as well, and I resolved it by pinning web3 to 1.0.0-beta.36

The latest (at that time beta.43), at least in the browser environment, triggered a chrome extension safety check, and essentially broke Metamask.

See more here: https://github.com/JoinColony/purser/pull/202

rdig avatar Mar 29 '19 10:03 rdig