-
Notifications
You must be signed in to change notification settings - Fork 334
[🐛] Axios errors after react-native 0.79.1 upgrade #3066
New issue
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
Comments
I did some research, react-native and metro do not support some node features in their new versions, I think this is the problem, but I could not find a method that could work properly. |
I am trying yarn add 'react-native-quick-crypto'
|
It thinks the node 'url' is included, and does not pick browser for react-native. Unsure why. |
ok.... No idea why it does not auto pick browser.... But if you replace /node_modules/stream-chat/node_modules/axios/package.json with (top of the file).... replace these lines:
The Axios picks the browser, since I changed it all to browser. |
|
Thanks your helps, today I will give information about this after my experience. By the way, maybe it will help us. Similar problems occur in another package I use after the upgrade. I use jotai, and when I make the same changes regarding esm in the package.json file on the jotai side, it starts working. |
When I apply this it works fine @billnbell3 |
Yeah it uses default in RN now... No idea why they switched it.... |
OK you can easily add the react-native export for long term fix for Axios.
|
Issue
After updating to react-native version 0.79.1, there is a problem with the axios package.
I tried to nodeify the react-native project regarding this issue, but it continues to give other errors.
Steps to reproduce
Steps to reproduce the behavior:
Project Related Information
Offline support
Environment
Click To Expand
package.json
:react-native info
output:The text was updated successfully, but these errors were encountered: