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

Error: Cannot find module '@babel/runtime-corejs2/helpers/interopRequireWildcard' #8603

Closed
catamphetamine opened this issue Sep 2, 2018 · 4 comments
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@catamphetamine
Copy link

catamphetamine commented Sep 2, 2018

I tried upgrading my library (which is using babel-runtime) to Babel 7 today and I get this error when running it.

Error: Cannot find module '@babel/runtime-corejs2/helpers/interopRequireDefault'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
    at Function.Module._load (internal/modules/cjs/loader.js:475:25)
    at Module.require (internal/modules/cjs/loader.js:598:17)
    at require (internal/modules/cjs/helpers.js:11:18)
    at Object.<anonymous> (c:\dev\serverless-functions-test\node_modules\serverless-functions\commonjs\aws-lambda\api.js:3:30)
    at Module._compile (internal/modules/cjs/loader.js:654:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
    at Module.load (internal/modules/cjs/loader.js:566:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
    at Function.Module._load (internal/modules/cjs/loader.js:498:3)

The config is the same as in the Upgrade manual:

{
	"presets": ["@babel/preset-env"],

	"plugins":
	[
		["@babel/plugin-transform-runtime", { corejs: 2 }],
		...
	]
}
@babel-bot
Copy link
Collaborator

Hey @catamphetamine! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.

@catamphetamine
Copy link
Author

Ok, it needed:

 npm install @babel/runtime-corejs2 --save

@loganfsmyth
Copy link
Member

Yup! Glad you got it working. Can we improve the documentation around this?

@catamphetamine
Copy link
Author

@loganfsmyth Not much I guess, it's just a bit overwhelming for anyone to migrate infrastructure to a new major version, so many things get overlooked due to how human perception/consciousness work.
I mean it is written there to install the package, but I decided to just overlook it.

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Dec 2, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Dec 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

No branches or pull requests

3 participants