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/helpers/interopRequireDefault' #526

Open
veeramarni opened this issue Nov 5, 2022 · 0 comments

Comments

@veeramarni
Copy link

Getting following errror

jscodeshift -t https://raw.githubusercontent.com/gndelia/codemod-replace-react-fc-typescript/main/dist/index.js --extensions=tsx --verbose=2 packages-modules/components/SettingEditor/

Error: Cannot find module '@babel/runtime/helpers/interopRequireDefault'
Require stack:
- /private/var/folders/qb/g60h__vn0cz2800dl5f8mrmh0000gn/T/jscodeshift2022105-68084-1nh3gle.v12e.js
- /Users/vm/.npm-global/lib/node_modules/jscodeshift/src/Worker.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
    at Function.Module._load (node:internal/modules/cjs/loader:833:27)
    at Module.require (node:internal/modules/cjs/loader:1057:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/private/var/folders/qb/g60h__vn0cz2800dl5f8mrmh0000gn/T/jscodeshift2022105-68084-1nh3gle.v12e.js:3:30)
    at Module._compile (node:internal/modules/cjs/loader:1155:14)
    at Module._compile (/Users/vm/.npm-global/lib/node_modules/jscodeshift/node_modules/pirates/lib/index.js:136:24)
    at Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
    at Object.newLoader [as .js] (/Users/vm/.npm-global/lib/node_modules/jscodeshift/node_modules/pirates/lib/index.js:141:7)
    at Module.load (node:internal/modules/cjs/loader:1033:32)
    at Function.Module._load (node:internal/modules/cjs/loader:868:12)
    at Module.require (node:internal/modules/cjs/loader:1057:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at setup (/Users/vm/.npm-global/lib/node_modules/jscodeshift/src/Worker.js:91:18)
    at Object.<anonymous> (/Users/vm/.npm-global/lib/node_modules/jscodeshift/src/Worker.js:45:3)
    at Module._compile (node:internal/modules/cjs/loader:1155:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
    at Module.load (node:internal/modules/cjs/loader:1033:32)
    at Function.Module._load (node:internal/modules/cjs/loader:868:12)ions..js (node39m
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:22:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/private/var/folders/qb/g60h__vn0cz2800dl5f8mrmh0000gn/T/jscodeshift2022105-68084-1nh3gle.v12e.js',
    '/Users/vm/.npm-global/lib/node_modules/jscodeshift/src/Worker.js'
  ]
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

1 participant