We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
RequestException: ReferenceError: XMLHttpRequest is not defined
It looks like this library doesn't support use in node, would be nice to support it.
The text was updated successfully, but these errors were encountered:
Hello, thanks for this feedback. This is something we can work on. As a temporary solution, you can embed XMLHttpRequest on Node side, like done here : https://framagit.org/Pic4Carto/Pic4Review/-/blob/master/webpack.config.js#L57
Sorry, something went wrong.
Thanks for the tip! For now I decided to directly call the API rather than using this library.
Kind of a late hacky answer, but this worked for me:
osm-request
global.XMLHttpRequest = require("w3c-xmlhttprequest").XMLHttpRequest;
No branches or pull requests
RequestException: ReferenceError: XMLHttpRequest is not defined
It looks like this library doesn't support use in node, would be nice to support it.
The text was updated successfully, but these errors were encountered: