twilio-node icon indicating copy to clipboard operation
twilio-node copied to clipboard

[Feature Request]: Run on Cloudflare Workers

Open abegehr opened this issue 6 months ago • 2 comments

Preflight Checklist

  • [x] I have read the Contributing Guidelines for this project.
  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.
  • [x] This is not a general Twilio feature request or bug report. It is a feature request for the twilio-node JavaScript package.

Problem Description

Trying to run the latest version of twilio-node on Cloudflare Worker local dev with nodejs_compat enabled fails for me with:

2:42:20 PM [vite] Internal server error: Cannot read properties of undefined (reading 'fd')
      at async ProxyServer.fetch (file:///Users/anton/local/repos/lunavibez/node_modules/.pnpm/[email protected]/node_modules/miniflare/src/workers/core/proxy.worker.ts:173:11) (x2)

According to this sample project it should work however: https://github.com/craigsdennis/twilio-cloudflare-workflow

Proposed Solution

It would be nice to be able to use the twilio sdk in any javascript runtime, not limited to node.

Alternatives Considered

making HTTP-calls without types

Additional Information

No response

abegehr avatar Jun 02 '25 10:06 abegehr

We will take a look at this

manisha1997 avatar Jun 05 '25 12:06 manisha1997

👋 Hi @abegehr, thanks for reporting this issue!

Our Agent TwiDI has started analyzing and prioritizing this request.
Here’s what will happen next:

  • A PR will be created to address this issue.
  • The PR will be reviewed by our team members.
  • On approval, the PR will be merged into the main branch.
  • Once merged, the issue will be closed automatically and changes will be available in the next release.

⏳ Sit tight — we’ll keep you updated as we make progress.

twilio-dx avatar Sep 12 '25 12:09 twilio-dx