Skip to content
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

NodeJS Web3 1.0.0-beta.38 and 1.0.0-beta.39: Cannot find module '@babel/runtime/helpers/classCallCheck' #2221

Closed
kroitor opened this issue Jan 27, 2019 · 6 comments · Fixed by #2244
Labels
Bug Addressing a bug

Comments

@kroitor
Copy link

kroitor commented Jan 27, 2019

Hi!

Web3 1.0.0-beta.37 did work fine with all my systems. But now, after upgrading to 1.0.0-beta.38 it stopped working. Even after a clean install into a new empty folder, it doesn't work on my Mac, also tried Ubuntu 14.04 LTS with same results. As you can see from the output below, it really is a system-agnostic bug related to the require() + npm module directory resolver, so, most likely, a problem somewhere in the web3.js codebase itself.

+ web3@1.0.0-beta.38
added 298 packages from 205 contributors in 38.338s
[+] no known vulnerabilities found [15378 packages audited]
> const Web3 = require('web3')
Error: Cannot find module '@babel/runtime/helpers/classCallCheck'
    at Function.Module._resolveFilename (module.js:542:15)
    at Function.Module._load (module.js:472:25)
    at Module.require (module.js:585:17)
    at require (internal/module.js:11:18)
>
$ uname -a
Darwin mbp.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
$ node --version
v9.2.0
$ npm --version
6.0.0

Questions:

  • Why is that babel stuff missing after a clean install?
  • What would be a proper workaround for this issue?
@patidarmanoj10
Copy link

Same issue for me. I did npm install --save @babel/runtime and then it worked well.

@nivida
Copy link
Contributor

nivida commented Jan 27, 2019

@kroitor Thanks for submitting this issue! I've fixed it in: #2227 this PR should get released today or tomorrow morning. I apologize for the troubles you had.

@patidarmanoj10 Thanks for providing a workaround that fast.

@0x31
Copy link

0x31 commented Jan 28, 2019

@nivida This still seems to be an issue in version 1.0.0-beta.39. Should the @babel/runtime dependency be added to web3.js/packages/web3/package.json instead of web3.js/package.json?

@kroitor
Copy link
Author

kroitor commented Jan 28, 2019

I can confirm the results of @negaex – still getting the same (identical) issue with 1.0.0-beta.39.

@spursy
Copy link

spursy commented Jan 28, 2019

@nivida I still confirm the same issue still exits in "web3": "^1.0.0-beta.39"

@wjmelements
Copy link

Please deprecate versions beta.38 and beta.39, which reproduce this issue.

@kroitor kroitor changed the title NodeJS Web3 1.0.0-beta.38 Cannot find module '@babel/runtime/helpers/classCallCheck' NodeJS Web3 1.0.0-beta.38 and 1.0.0-beta.39: Cannot find module '@babel/runtime/helpers/classCallCheck' Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Addressing a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants