Repository navigation
createBundleReleaseJsAndAssets FAILED #54423
Copy link
Copy link
Closed as not planned
Labels
Needs: AttentionIssues where the author has responded to feedback.Issues where the author has responded to feedback.Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.This issue could be improved with a clear list of steps to reproduce the issue.📦Bundler
Description
Description
I suddenly got this error while building my project. I used it for 2 weeks and there was no problem. I didn't understand.
Steps to reproduce
- install application "cd android && ./gradlew bundleRelease"
React Native Version
0.81.4
Affected Platforms
Runtime - Android
Output of npx @react-native-community/cli info
System:
OS: macOS 15.4.1
CPU: (8) arm64 Apple M1 Pro
Memory: 131.30 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.19.4
path: /Users/sahinboga/.nvm/versions/node/v20.19.4/bin/node
Yarn:
version: 1.22.21
path: /opt/homebrew/bin/yarn
npm:
version: 10.8.2
path: /Users/sahinboga/.nvm/versions/node/v20.19.4/bin/npm
Watchman:
version: 2025.05.19.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /Users/sahinboga/.gems/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK:
API Levels:
- "25"
- "26"
- "28"
- "30"
- "31"
- "33"
- "34"
- "35"
- "36"
Build Tools:
- 30.0.3
- 31.0.0
- 33.0.0
- 33.0.1
- 34.0.0
- 35.0.0
- 36.0.0
System Images:
- android-36 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.9787799
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.9
path: /usr/bin/javac
Ruby:
version: 3.4.4
path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: 20.0.0
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.81.4
wanted: 0.81.4
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Stacktrace or Logs
> Task :app:createBundleReleaseJsAndAssets FAILED
error configs.toReversed is not a function.
TypeError: configs.toReversed is not a function
at mergeConfig (/Users/sahinboga/Documents/GitHub/YayincilikOgretmen/node_modules/metro-config/src/loadConfig.js:179:35)
at Object.getDefaultConfig (/Users/sahinboga/Documents/GitHub/YayincilikOgretmen/node_modules/@react-native/metro-config/dist/index.js:97:39)
at loadMetroConfig (/Users/sahinboga/Documents/GitHub/YayincilikOgretmen/node_modules/@react-native/community-cli-plugin/dist/utils/loadMetroConfig.js:66:39)
at Object.buildBundle [as func] (/Users/sahinboga/Documents/GitHub/YayincilikOgretmen/node_modules/@react-native/community-cli-plugin/dist/commands/bundle/buildBundle.js:22:53)
at Command.handleAction (/Users/sahinboga/Documents/GitHub/YayincilikOgretmen/node_modules/@react-native-community/cli/build/index.js:139:23)
at Command.listener [as _actionHandler] (/Users/sahinboga/Documents/GitHub/YayincilikOgretmen/node_modules/commander/lib/command.js:482:17)
at /Users/sahinboga/Documents/GitHub/YayincilikOgretmen/node_modules/commander/lib/command.js:1283:65
at Command._chainOrCall (/Users/sahinboga/Documents/GitHub/YayincilikOgretmen/node_modules/commander/lib/command.js:1177:12)
at Command._parseCommand (/Users/sahinboga/Documents/GitHub/YayincilikOgretmen/node_modules/commander/lib/command.js:1283:27)
at /Users/sahinboga/Documents/GitHub/YayincilikOgretmen/node_modules/commander/lib/command.js:1081:27
MANDATORY Reproducer
Screenshots and Videos
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs: AttentionIssues where the author has responded to feedback.Issues where the author has responded to feedback.Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.This issue could be improved with a clear list of steps to reproduce the issue.📦Bundler
Activity
react-native-bot commentedon Nov 6, 2025
Warning
Missing reproducer: We could not detect a reproducible example in your issue report. Reproducers are mandatory and we can accept only one of those as a valid reproducer:
You can read more about about it on our website: How to report a bug.
jsite-pl commentedon Nov 6, 2025
I had the same error today. I needed to sync my project with Gradle files in Android Studio. I encountered some errors, but after fixing them, I simply ran a "clean project" in Android Studio and synced the project with Gradle files again. After that, everything worked fine.
sahinboga commentedon Nov 7, 2025
I think it was a temporary issue, when I tried it a few hours later I was able to get the correct build.
taylorkline commentedon Nov 7, 2025
For me, the issue occurred because I still had an
.xcode.env.localthat pointed to an old version of Node.JengYoung commentedon Nov 12, 2025
In my case, I was using nvm(which automatically switches Node versions in each workspace), and my Node version was lower than the one that supports ES2023 (available in Node v20 and above).
So, I updated the default Node version in nvm to v22.
trehman82 commentedon Nov 24, 2025
I got this error, solved by changing the node version to 20.16.0. Issue resolved.
andrishop commentedon Nov 28, 2025
the same problem here, in Apple M4, only macos...
francoangulo commentedon Dec 9, 2025
I was having the same issue and in my case it was also due to Node versions, I had to upgrade it
4 remaining items
aliceni81 commentedon Dec 16, 2025
You really saved my day!!!
I realized that @expo/cli is missing (as I use expo). After installing it, the problem is fixed.
DeepakSharma04 commentedon Dec 16, 2025
After updated the node to v20.19.6 and restart the mac it works
camboYY commentedon Dec 25, 2025
node -v
v20.19.4
not working
alishah514 commentedon Dec 25, 2025
Can you show me your .xcode.env.local file?? Inside iOS folder..
camboYY commentedon Dec 26, 2025
export NODE_BINARY=$(command -v node)
Timjini commentedon Jan 2, 2026
Hi, I had the same error in my case it was the Node version I changed from 18 to 22 and it worked.
range-of-motion commentedon Jan 10, 2026
Worked for me, thanks! 🙌
obayit commentedon Jan 14, 2026
expo/expo#42057
probably, you need to upgrade node version
eakarpov commentedon Jan 28, 2026
@DeepakSharma04 restarting mac was the key, thanks!
Abhishek-ks-19 commentedon Mar 7, 2026
I had the same issue. I was using nvm, and it was defaulting to an older Node version. So every time a new terminal started for Metro, it used the older version. I fixed it by setting the default Node version in nvm to v20.
react-native-bot commentedon Sep 4, 2026
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
react-native-bot commentedon Sep 11, 2026
This issue was closed because it has been stalled for 7 days with no activity.