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'
]
Getting following errror