node-fetch-cjs icon indicating copy to clipboard operation
node-fetch-cjs copied to clipboard

node-fetch available as a commonjs module

Results 2 node-fetch-cjs issues
Sort by recently updated
recently updated
newest added

``` node_modules/node-fetch-commonjs/index.d.ts:4:24 - error TS2307: Cannot find module 'formdata-polyfill/esm.min.js' or its corresponding type declarations. 4 import {FormData} from 'formdata-polyfill/esm.min.js'; ``` ``` node_modules/node-fetch-commonjs/index.d.ts:12:8 - error TS2307: Cannot find module 'fetch-blob/from.js' or...

I tried my code ``` let stubFetch; const fetch = require("node-fetch-commonjs"); stubFetch = sinon.stub(fetch, "default"); stubFetch.returns(Promise.resolve(new Response(undefined, { status: 200 }))); stubFetch.restore(); ``` it doesn't work. how to stub your...

question