Open pankajpatel opened 3 years ago
I have the same issue with ElectronJS. On the main (nodejs) thread. And axios is a dependency of the project.
Any idea?
You can maybe alias the axios
module imports to redaxios
in your bundler.
For my project, I changed the way I was using the content API to only run on the browser.
Issue Summary
XMLHttpRequest is not defined in Netlify Functions
To Reproduce
I think
@tryghost/content-api
uses axios to send AJAX requests. Axios depends heavily on XMLHttpRequest for its functioning.Possible alternatives can be https://github.com/developit/redaxios
Technical details: