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

Cannot find module '@babel/runtime/helpers/interopRequireDefault' #18

Open
timbowhite opened this issue Jan 4, 2020 · 3 comments
Open

Comments

@timbowhite
Copy link

Hello, thanks for this module.

I get the following error when requiring 'json-url' with node v10.16.3.

internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '@babel/runtime/helpers/interopRequireDefault'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/twhite/foo/node_modules/json-url/dist/node/index.js:3:30)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)

Installed with npm v6.13.4. Also got the following warnings running npm install json-url:

npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

> [email protected] postinstall /foo/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
@alexladerman-nav
Copy link

yarn add @babel/runtime worked for me

@outaTiME
Copy link

same here while trying to run in vercel environment, any update ?

@NikolaiT
Copy link

NikolaiT commented Dec 9, 2020

Same issue here. I don't want to install any @babel/runtime, why does this does not work out of the box?

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

4 participants