Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: XMLHttpRequest is not defined #84

Open
liugezhou opened this issue May 9, 2024 · 1 comment
Open

ReferenceError: XMLHttpRequest is not defined #84

liugezhou opened this issue May 9, 2024 · 1 comment

Comments

@liugezhou
Copy link

image

When i run node demo.js,and then:

/User/xxx/Demo/aidemo/node_modules/whatwg-fetch/dist/fetch.umd.js:540
var xhr = new XMLHttpRequest();
^

ReferenceError: XMLHttpRequest is not defined

@ozgrozer
Copy link

ozgrozer commented May 12, 2024

I had the same error on Node.js v17.
Tried lots of things then accidently found out that it's working perfect with Node.js v18.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants