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
Install on an application running on Cloudflare Workers.
This library fails as it relies on XHR/Axios under the hood, which Cloudflare Workers don't support. My suggestion would be to change requests to use fetch, and provide a configuration option when initialising to supply your own instance of fetch. This could then be used with cross-fetch to support pure Node environments and the 'webworker-ish' environment of CF workers with the same codebase.
This isn't preventing me using it (just wrote my own API wrapper), but it would be nice to have.
The text was updated successfully, but these errors were encountered:
@0x62 we just released v4.0.0 version of this package with a rewrite under the hood to use fetch instead of axios which will allow it to be used in Workers as well as node environments.
Expected Behavior
Builds successfully.
Actual Behavior
Fails.
Steps to Reproduce the Problem
Install on an application running on Cloudflare Workers.
This library fails as it relies on XHR/Axios under the hood, which Cloudflare Workers don't support. My suggestion would be to change requests to use
fetch
, and provide a configuration option when initialising to supply your own instance offetch
. This could then be used withcross-fetch
to support pure Node environments and the 'webworker-ish' environment of CF workers with the same codebase.This isn't preventing me using it (just wrote my own API wrapper), but it would be nice to have.
The text was updated successfully, but these errors were encountered: