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

Cloudflare Workers Compatibility #592

Open
gtlog opened this issue Apr 30, 2023 · 0 comments
Open

Cloudflare Workers Compatibility #592

gtlog opened this issue Apr 30, 2023 · 0 comments

Comments

@gtlog
Copy link

gtlog commented Apr 30, 2023

Describe the bug
It is not possible to use this library within Cloudflare Workers due to lack of Node.js runtime. To be specific, lack of Buffer causes this error. As recommended by the Node documentation, likely an import is going to solve this problem.

To Reproduce
Steps to reproduce the behavior:

  1. Import farcaster-js within a Cloudflare Workers function
  2. Try to share a cast using the library

Expected behavior
We are expecting to cast on Farcaster.

Desktop (please complete the following information):

  • OS: macOS 13.2
  • Node version: 18.0
  • Code Version: latest

Additional context

Cloudflare Workers have compatibility flags for Node APIs. If Buffer can be imported from node:buffer, this problem is likely to be solved.

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