abortcontroller-polyfill icon indicating copy to clipboard operation
abortcontroller-polyfill copied to clipboard

ReferenceError: DOMException is not defined in node

Open skurgansky-sugarcrm opened this issue 5 years ago • 3 comments

Exception has occurred: ReferenceError ReferenceError: DOMException is not defined at _fetch (/node_modules/abortcontroller-polyfill/dist/cjs-ponyfill.js:400:9)

skurgansky-sugarcrm avatar Feb 27 '20 12:02 skurgansky-sugarcrm

What are the steps to reproduce this issue? What node version did you use? Can you post the script that you are running?

mo avatar Feb 28 '20 09:02 mo

this issue is related to use case with node. I found out later that node doesn't support AbortController but believed in this lib because in readme it has node installation. https://github.com/mo/abortcontroller-polyfill#using-it-on-nodejs

But it doesn't work at all.

skurgansky-sugarcrm avatar Feb 28 '20 10:02 skurgansky-sugarcrm

DOMException exist globally in NodeJS v17 doe it's supported as early as in v10.5 but not easily accessible without node-domexception

AbortController came into NodeJS v15

jimmywarting avatar Dec 20 '21 10:12 jimmywarting