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
Production build in react-native fails because the browser-request library tries to call document.createElement to check for cross-domain request (for CORS).
In React Native, document is not defined and CORS is not relevant.
The browser-request library has not been updated since 2014, so upstream fix seems very unlikely.
Thanks for raising this issue! element-hq/element-web#7634 is related and raises some complexity to consider when moving to a different request library.
If xmlhttp-request solves those issues, then it seems like a reasonable candidate.
Exploring related questions - request is in maintenance mode and xmlhttp-request hasn't been touched in many years. I think this could perhaps be closed in favor of #801 (comment)
Production build in react-native fails because the
browser-request
library tries to calldocument.createElement
to check for cross-domain request (for CORS).In React Native,
document
is not defined and CORS is not relevant.The
browser-request
library has not been updated since 2014, so upstream fix seems very unlikely.I propose dependency update to https://www.npmjs.com/package/xmlhttp-request which is a fork of
browser-request
that fixed this problem.The text was updated successfully, but these errors were encountered: