You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
XMLHttpRequest is not defined in Netlify Functions #370
Looks like the issue is linked to browser: true rollup config option. This will result in axios dependency to be built based on assumption it is used in the browser only - with xhr always used as the adaptor
Activity
nrdcp commentedon Aug 25, 2021
Looks like the issue is linked to
browser: truerollup config option. This will result inaxiosdependency to be built based on assumption it is used in the browser only - with xhr always used as the adaptorgaetandezeiraud commentedon Jun 23, 2022
I have the same issue with ElectronJS. On the main (nodejs) thread.
And axios is a dependency of the project.
Any idea?
pankajpatel commentedon Jun 23, 2022
You can maybe alias the
axiosmodule imports toredaxiosin your bundler.For my project, I changed the way I was using the content API to only run on the browser.
SupremeTechnopriest commentedon Dec 3, 2024
Why Axios?! Its such a horrible abstraction. Please, just use fetch. Its 2024.