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

global is not defined #11

Open
konsumer opened this issue Nov 23, 2023 · 0 comments
Open

global is not defined #11

konsumer opened this issue Nov 23, 2023 · 0 comments

Comments

@konsumer
Copy link

konsumer commented Nov 23, 2023

I attempted to use it with Cloudflare worker, which is javascript, but not node. I am guessing that it's a problem with node-fetch. In current version of node (and CF workers) fetch is already a global, but also I recommend cross-fetch which checks if fetch is defined before trying to polyfill it, and works in cloudflare-workers.

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