Skip to content

[Feature Request]: Run on Cloudflare Workers #1096

@abegehr

Description

@abegehr

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.
  • 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions