You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running babel-node with this preset, I am encountering the following error and call stack:
internal/modules/cjs/loader.js:628
throw err;
^
Error: Cannot find module '@babel/runtime/helpers/interopRequireWildcard'
Require stack:
- /Users/pauljaworski/Projects/ponto-api/src/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:625:15)
at Function.Module._load (internal/modules/cjs/loader.js:527:27)
at Module.require (internal/modules/cjs/loader.js:683:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object.<anonymous> (/Users/pauljaworski/Projects/ponto-api/src/index.js:3:31)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Module._compile (/Users/pauljaworski/Projects/ponto-api/node_modules/pirates/lib/index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Object.newLoader [as .js] (/Users/pauljaworski/Projects/ponto-api/node_modules/pirates/lib/index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:643:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/Users/pauljaworski/Projects/ponto-api/src/index.js' ]
}
The issue goes away when I switch to @babel/preset-env, so I'm assuming it's coming from this preset. Happy to provide more information if needed. Thanks!
The text was updated successfully, but these errors were encountered:
I believe this is happening because this preset uses @babel/plugin-transform-runtime which requires that you have @babel/runtime installed as a dependency in your application. There is a peerDependency on that package here that needs to be satisfied in your application:
When running babel-node with this preset, I am encountering the following error and call stack:
The issue goes away when I switch to
@babel/preset-env
, so I'm assuming it's coming from this preset. Happy to provide more information if needed. Thanks!The text was updated successfully, but these errors were encountered: