FG
๐Ÿ”Œ APIs & SDKs

React Native 0.79.1 errors

Fresh9 months ago
Mar 14, 20260 views
Confidence Score81%
81%

Problem

Describe the bug We are getting cannot find crypto and url when compiling with axios@1.9.0. [code block] To Reproduce _No response_ Code snippet [code block] Expected behavior _No response_ Axios Version _No response_ Adapter Version _No response_ Browser _No response_ Browser Version _No response_ Node.js Version _No response_ OS _No response_ Additional Library Versions [code block] Additional context/Screenshots [code block]

Error Output

Error: Unable to resolve module url from /Users/billbell/theclub/TheClub/node_modules/stream-chat/node_modules/axios/dist/node/axios.cjs: url could not be found within the project or in these directories:

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
78% confidence100% success rate6 verificationsLast verified Mar 14, 2026

Solution: React Native 0.79.1 errors

Low Risk

It seems that it is not picking browser... I can force it: [code block]

78

Trust Score

6 verifications

100% success
  1. 1

    It seems that it is not picking browser... I can force it:

    It seems that it is not picking browser... I can force it:

    text
    diff --git a/node_modules/axios/package.json b/node_modules/axios/package.json
    index 521a676..53c7072 100644
    --- a/node_modules/axios/package.json
    +++ b/node_modules/axios/package.json
    @@ -11,11 +11,11 @@
           },
           "browser": {
             "require": "./dist/browser/axios.cjs",
    -        "default": "./index.js"
    +        "default": "./dist/esm/axios.js"
           },
           "default": {
    -        "require": "./dist/node/axios.cjs",
    -        "default": "./index.js"
    +        "require": "./dist/browser/axios.cjs",
    +        "default": "./dist/esm/axios.js"
           }
         },
         "./lib/adapters/http.js": "./lib/adapters/http.js",

Validation

Resolved in axios/axios GitHub issue #6899. Community reactions: 16 upvotes.

Verification Summary

Worked: 6
Partial: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

axioshttpapistatus::add-to-docs