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' #142

Open
kkday-kevinhorasia opened this issue Nov 6, 2024 · 2 comments

Comments

@kkday-kevinhorasia
Copy link

I try npm install twilio-taskrouter and inindex.js file:

const TaskRouter = require("twilio-taskrouter");
console.log("TaskRouter:", TaskRouter);

When I try to run index.js I got this error:

Error: Cannot find module '@babel/runtime/helpers/interopRequireDefault'

Am I missing something?

@Mauro-WZ
Copy link

Mauro-WZ commented Jan 8, 2025

Were you able to find a solution for this? I'm facing the same problem.

@kkday-kevinhorasia
Copy link
Author

kkday-kevinhorasia commented Jan 9, 2025

Hi @Mauro-Wheelzy,

Yeah, you need to add npm install @babel/runtime --save-dev as dev dependency in your project.

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

2 participants