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

with cloudflare wrangler:Uncaught TypeError: globalThis.XMLHttpRequest is not a constructor #533

Open
nathonNot opened this issue May 30, 2024 · 1 comment

Comments

@nathonNot
Copy link

I'm using CF's Wrangler framework to develop an API, and when I plug in twitter-api-v2, yarn dev starts with an error message
`
Uncaught TypeError: globalThis.XMLHttpRequest is not a constructor

at null. (index.js:11733:11) in checkTypeSupport
at null. (index.js:11745:38)
`
Seems to be due to a compatibility issue with node? I don't know if this is a bug or if it will be compatible with cf workers in the future

@kiecooboi
Copy link

I don't see this message in development but it fails when deploying to cloudflare due to the node.js API, I don't think this package is compatible with cloudflare.

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