node-google-spreadsheet
node-google-spreadsheet copied to clipboard
Error trying to use in a Cloudflare Pages
I deployed my app to Cloudflare page but got this error
TypeError: globalThis.XMLHttpRequest is not a constructor
I think it's because Cloudflare uses Fetch API instead of XMLHttpRequest. Is there any walkaround?
Thank you
Probably not at the moment, but I’m working on a big update so I’ll see if there’s a way to make this work.
so it looks like this is a problem because I am using axios under the hood. I'd need to rewrite things to use fetch instead. Definitely doable but will take some work.
Would be highly appreciated :heart:
I was able to update the node version Cloudflare is using to 16.7.0 and deploy successfully. Previously was on 12.2.0.