1

I've tried on ubuntu, windows with different versions and browsers. web3 1 latest beta:

WARNING in ./node_modules/asn1.js/lib/asn1/api.js Module not found: Error: Can't resolve 'vm' in 'C:\Users\x\Desktop\backmeapp\node_modules\asn1.js\lib\asn1'

ERROR in ./node_modules/eth-lib/lib/bytes.js Module not found: Error: Can't resolve 'crypto' in 'C:\Users\x\Desktop\backmeapp\node_modules\eth-lib\lib' ERROR in ./node_modules/web3-eth-accounts/node_modules/eth-lib/lib/bytes.js Module not found: Error: Can't resolve 'crypto' in 'C:\Users\x\Desktop\backmeapp\node_modules\web3-eth-accounts\node_modules\eth-lib\lib' ERROR in ./node_modules/web3-eth-accounts/src/index.js Module not found: Error: Can't resolve 'crypto' in 'C:\Users\x\Desktop\backmeapp\node_modules\web3-eth-accounts\src' ERROR in ./node_modules/xhr2-cookies/dist/xml-http-request.js Module not found: Error: Can't resolve 'http' in 'C:\Users\x\Desktop\backmeapp\node_modules\xhr2-cookies\dist' ERROR in ./node_modules/xhr2-cookies/dist/xml-http-request.js Module not found: Error: Can't resolve 'https' in 'C:\Users\x\Desktop\backmeapp\node_modules\xhr2-cookies\dist' ERROR in ./node_modules/xhr2-cookies/dist/xml-http-request.js Module not found: Error: Can't resolve 'os' in 'C:\Users\x\Desktop\backmeapp\node_modules\xhr2-cookies\dist' ERROR in ./node_modules/browserify-sign/browser/index.js Module not found: Error: Can't resolve 'stream' in 'C:\Users\x\Desktop\backmeapp\node_modules\browserify-sign\browser' ERROR in ./node_modules/cipher-base/index.js Module not found: Error: Can't resolve 'stream' in 'C:\Users\x\Desktop\backmeapp\node_modules\cipher-base' ERROR in ./node_modules/hash-base/index.js Module not found: Error: Can't resolve 'stream' in 'C:\Users\x\Desktop\backmeapp\node_modules\hash-base'

1

Altough the proper answer to your issue might probbably be to install the module you have referenced, I would strongly recommend you to use the truffle angular boilerplate instead.

It will save you ages worth of nerves, believe me.

EDIT: After thoroughly reading your errors again, I see that it requires "crypto", which is a default package now, breaking old dependencies. Here is a patch.

  • It seems like there are missing file even inside the web3 packages. All I can see on the official documentation is "npm install web3" so I thought it was a self-contained package. – user38075 Jul 29 '18 at 10:56
  • you should try which version of web3 you require. npm install web3@0 will get you the latest release of web3 0.x.x . – Nikita Fuchs Aug 10 '18 at 11:45
  • yes I did want the last one, but as you said there were many missing modules that I have no idea how to set up correctly – user38075 Aug 10 '18 at 14:11
  • 1
    see the edit on my answer. – Nikita Fuchs Aug 10 '18 at 14:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy