cross-fetch icon indicating copy to clipboard operation
cross-fetch copied to clipboard

Universal WHATWG Fetch API for Node, Browsers and React Native.

Results 42 cross-fetch issues
Sort by recently updated
recently updated
newest added

I'm using this library (via https://github.com/prisma-labs/graphql-request) and it fails to make requests when used within a browser service worker. More specifically, it throws: ```javascript ReferenceError: XMLHttpRequest is not defined at...

Hi, When I try to import the default export of `cross-fetch` I get this warning from Webpack: ``` "export 'default' (imported as 'fetch') was not found in 'cross-fetch' ``` I...

esm

Hey. I'm trying to use supabase (which uses `cross-fetch`) with Nuxt 3 and I found a problem with `browser-ponyfill`: ``` Uncaught SyntaxError: The requested module '/node_modules/cross-fetch/dist/browser-ponyfill.js?v=6f3da668' does not provide an...

esm

Importing in an esm setup on the server seems to break. ``` Error when evaluating SSR module /node_modules/cross-fetch/dist/node-ponyfill.js: ReferenceError: require is not defined at /node_modules/cross-fetch/dist/node-ponyfill.js:1:17 ``` Not sure if this...

esm

Hey @lquixada, yours is the only package we use inside the JS libs at Supabase. Would you consider setting up GitHub sponsors so that we can sponsor you? Alternatively if...

I use node.js successfully on client side, but on same project I'd also love to use cross-fetch using [node-fetch options](https://github.com/node-fetch/node-fetch#options). I would love to follow redirects, and it's not possible...

I am looking for a ponyfill that works in react-native, the browser and node. `cross-fetch` seems like the best alternative except that it also adds a ponyfill which seems only...

Reproducible on latest node 16.3.0: ``` ❯ cat package.json { "type": "module", "devDependencies": { "cross-fetch": "^3.1.4" } } ❯ cat index.js import "cross-fetch/polyfill"; ❯ node --experimental-specifier-resolution=node index.js node:internal/process/esm_loader:74 internalBinding('errors').triggerUncaughtException( ^...

esm

So the comment in README is no longer valid. Even the referenced issue is closed.

When installing cross-fetch v3.1.3, it somehow overrides the typescript settings. Despite having `dom` in lib in the tsconfig, Typescript starts to complain about e.g. `window` and `URLSearchParams`. If I downgrade...