npm / minipass-fetch

An implementation of window.fetch in Node.js using Minipass streams
Other
54 stars 11 forks source link

fix: compatibility with Electron #20

Closed ylc395 closed 2 years ago

ylc395 commented 2 years ago

I met a problem in electron app

Uncaught (in promise) TypeError: r.unref is not a function

According to this issue, we should require setTimeout from node.js library explicitly.

ylc395 commented 2 years ago

ok, I found out that this has been fixed in https://github.com/npm/minipass-fetch/commit/05fb45b2289045899b8e762e0f16ff9dd6bbd767