Web3.js: Missing module in 1.0.0-beta2

Created on 20 Jan 2018  路  8Comments  路  Source: ChainSafe/web3.js

Hi.

In nodejs, importing"web3": "^1.0.0-beta2", the module web3-requestManager is missing.

web3jsbeta2missingmanager

Most helpful comment

I guess i should release this soon as 1.0.0

All 8 comments

I get the same thing.

This is a problem with how the package is registered (?) or being downloaded from NPM. To fix it locally you can specify the exact version. First uninstall web3 from your project, then install it again and specify the exact version you want, e.g. npm i [email protected]. This _usually_ will fix it on a local machine.

It would be nice to get a fix to this. I want to distribute a package over NPM that bundles web3 1.0.0 and if I try, NPM will always install the erroneous [email protected] leading to this error.

Basically instead of doing beta.28 it should just be 1.0.28-beta. Then npm would pick up the patch change version.

How can I run a 1.0.0-beta node? I'm trying to use INFURA but its not working.

var Web3 = require('web3')
var web3 = new Web3()
web3.setProvider(new web3.providers.HttpProvider('https://ropsten.infura.io/...'))
web3.shh.getVersion((err, version) => {
  if (err) return console.error(err.message) // error: The method shh_version does not exist/is not available
  console.log(version)
})

EDIT: Turns out that I had to run my own node and specify --shh flag as it is still an experimental feature. This lib is working fine.

Same problem too

As @lsaether said, you can "fix" this specifying the version you want. works fine. But having a fix would be great!

you can only "fix" it liek this using npm, though.

With yarn, I know of no fix (except using npm)

I guess i should release this soon as 1.0.0

Was this page helpful?
0 / 5 - 0 ratings