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

[1.7.1-beta.25] Error: Cannot find module '@babel/runtime/helpers/builtin/interopRequireDefault #10126

Closed
rj-david opened this issue Aug 4, 2018 · 12 comments
Assignees
Milestone

Comments

@rj-david
Copy link
Contributor

rj-david commented Aug 4, 2018

When I first run beta.25, I got this error message:

Unable to resolve some modules:

  "@babel/runtime/helpers/builtin/interopRequireDefault" in /home/rj/Projects/Bountee/imports/ui/navigations/AppNavigator.jsx (web.browser)
  "@babel/runtime/helpers/builtin/extends" in /home/rj/Projects/Bountee/imports/ui/navigations/AppNavigator.jsx (web.browser)

If you notice problems related to these missing modules, consider running:

  meteor npm install --save @babel/runtime

My package.json had this after running the package install command above

"dependencies": {
        "@babel/runtime": "^7.0.0-beta.56",

Then I got this error:

W20180804-18:50:12.296(8)? (STDERR) /home/rj/Projects/Bountee/.meteor/local/build/programs/server/boot.js:475
W20180804-18:50:12.331(8)? (STDERR) }).run();
W20180804-18:50:12.332(8)? (STDERR)    ^
W20180804-18:50:12.332(8)? (STDERR)
W20180804-18:50:12.332(8)? (STDERR) Error: Cannot find module '@babel/runtime/helpers/builtin/interopRequireDefault'
W20180804-18:50:12.333(8)? (STDERR)     at Function.Module._resolveFilename (module.js:547:15)
W20180804-18:50:12.333(8)? (STDERR)     at Function.resolve (internal/module.js:18:19)
W20180804-18:50:12.333(8)? (STDERR)     at Object.require (/home/rj/Projects/Bountee/.meteor/local/build/programs/server/boot.js:288:32)
W20180804-18:50:12.334(8)? (STDERR)     at makeInstallerOptions.fallback (packages/modules-runtime.js:604:18)
W20180804-18:50:12.335(8)? (STDERR)     at Module.require (packages/modules-runtime.js:230:14)
W20180804-18:50:12.336(8)? (STDERR)     at require (packages/modules-runtime.js:244:21)
W20180804-18:50:12.336(8)? (STDERR)     at livedata_connection.js (/home/rj/Projects/Bountee/.meteor/local/build/programs/server/packages/ddp-client.js:144:30)
W20180804-18:50:12.337(8)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:322:7)
W20180804-18:50:12.338(8)? (STDERR)     at Module.require (packages/modules-runtime.js:224:14)
W20180804-18:50:12.338(8)? (STDERR)     at Module.moduleLink [as link] (/home/rj/.meteor/packages/modules/.0.13.0-beta171.25.19sd9vv.ookh++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/reify/lib/runtime/index.js:52:22)

I deleted .local and run meteor npm update and now I'm getting both errors above

@rj-david rj-david closed this as completed Aug 4, 2018
@rj-david
Copy link
Contributor Author

rj-david commented Aug 4, 2018

The error happened when using this version:

"@babel/runtime": "^7.0.0-beta.56"

There is no problem with version 7.0.0-beta.55

The folder @babel/runtime/helpers/builtin was missing in beta.56

@benjamn
Copy link
Contributor

benjamn commented Aug 4, 2018

Right, you should stay on @babel/runtime@7.0.0-beta.55 until you can update to Meteor 1.7.1-beta.27 (coming soon).

This error was the result of a deliberate breaking change in the runtime-related Babel 7.0.0-beta.56 packages (@babel/runtime, @babel/plugin-transform-runtime, @babel/runtime-corejs2): babel/babel#8266

Removing the dependency on core-js is a big step in the right direction, but also a pretty big disruption between beta versions. I'm glad they did this before the final Babel 7 release.

@benjamn
Copy link
Contributor

benjamn commented Aug 4, 2018

Ok, this should work if you update to the latest Meteor 1.7.1 beta and also update @babel/runtime:

meteor update --release 1.7.1-beta.27
meteor npm install @babel/runtime@latest

Please feel free to reopen if the same problem still happens!

@benjamn benjamn closed this as completed Aug 4, 2018
@scottstensland
Copy link

just started to get this on my builds using

meteor 1.7.0.3

even after issuing meteor npm install @babel/runtime@latest

@benjamn
Copy link
Contributor

benjamn commented Aug 5, 2018

@scottstensland @babel/runtime@7.0.0-beta.55 is what you want if you’re still on 1.7.0.3. The @babel/runtime@latest version is appropriate only after you’ve updated to the latest Meteor 1.7.1 beta.

@rj-david
Copy link
Contributor Author

rj-david commented Aug 5, 2018

@benjamn, is it possible to make some announcement related to this? Many meteor developers were getting stuck since yesterday. I'm not sure if the existing topics in the forum will suffice. Also considering that we are not yet in RC for 1.7.1 and not to be released anytime soon.

@benjamn
Copy link
Contributor

benjamn commented Aug 6, 2018

I'm going to reopen this issue so that people can find it more easily when they come to report similar problems.

We could publish a new patch version of the Meteor babel-runtime package that complains if you install @babel/runtime@7.0.0-beta.56, but then folks would have to update babel-runtime before they saw the warning.

@josechavezm
Copy link

I'm having a similar error after updating to 1.8.
It says that I should install @babel/runtime but I already did it, as suggested by the migration steps

@MHerszak
Copy link

@hiei189 same here. I am having problems, too. Updating to the latest version of babel doesn't help at the moment. Any suggestions?

@josechavezm
Copy link

josechavezm commented Oct 12, 2018

@MHerszak using @babel/runtime@7.0.0-beta.55 works fine. I'm still getting the warning though.

@linegel
Copy link

linegel commented Oct 16, 2018

I'm on 1.7.0.3 and project not builds even with 7.0.0-beta.55
UPDATE:
7.1.2 works fine with 1.8

@miguelconde91
Copy link

I have Meteor 1.7.0.5, with 7.0.0-beta.55 and not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants