Closed omer727 closed 2 years ago
Oh, the battle of the polyfills, I'm sorry.
You can work around it for now by changing the import order, or pulling in a specific global AC polyfill initially, but yes, this is annoying. I'm not sure the best way around it, since both libraries are trying to polyfill the same missing global.
When support for v14 and earlier drops, we can remove this polyfill. Until then, we're stuck with workarounds. Load node-fetch
first, or update node to v18 and use its built-in fetch implementation.
This library cause me collision with 'node-fetch' and 'abort-controller'. How to reproduce:
It's because