You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Import farcaster-js within a Cloudflare Workers function
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.
The text was updated successfully, but these errors were encountered:
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 ofBuffer
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:
Expected behavior
We are expecting to cast on Farcaster.
Desktop (please complete the following information):
Additional context
Cloudflare Workers have compatibility flags for Node APIs. If
Buffer
can be imported fromnode:buffer
, this problem is likely to be solved.The text was updated successfully, but these errors were encountered: