Closed NikhilMasurkar closed 1 year ago
Can you also please share the full console log?
:warning: | Missing Environment Information |
---|---|
:information_source: | Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console. |
Can you also please share the full console log?
Okay I will share
I am facing the same issue when upgraded from 0.66.4
to 0.71.3
Platform: Android
This is the full log of the failed task for https://gist.github.com/ketimaBU/3e40f750b84f6fde9592b26cb8b87cff @cortinico
I am facing the same issue when upgraded from
0.66.4
to0.73.1
Please open a separate issue.
Error: resolveDependencies: Found duplicate dependency key 'undefined' in C:\Project_Repo\App_Frontend\IndigoLearn\index.js
at Graph._resolveDependencies (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\@react-native-community\cli-plugin-metro\node_modules\metro\src\DeltaBundler\Graph.js:449:15)
at Graph._processModule (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\@react-native-community\cli-plugin-metro\node_modules\metro\src\DeltaBundler\Graph.js:218:38)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Graph._traverseDependenciesForSingleFile (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\@react-native-community\cli-plugin-metro\node_modules\metro\src\DeltaBundler\Graph.js:207:5)
at async Promise.all (index 0)
at async Graph.initialTraverseDependencies (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\@react-native-community\cli-plugin-metro\node_modules\metro\src\DeltaBundler\Graph.js:191:5)
at async DeltaCalculator._getChangedDependencies (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\@react-native-community\cli-plugin-metro\node_modules\metro\src\DeltaBundler\DeltaCalculator.js:196:25)
at async DeltaCalculator.getDelta (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\@react-native-community\cli-plugin-metro\node_modules\metro\src\DeltaBundler\DeltaCalculator.js:90:16)
at async DeltaBundler.buildGraph (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\@react-native-community\cli-plugin-metro\node_modules\metro\src\DeltaBundler.js:54:5)
at async IncrementalBundler.buildGraphForEntries (C:\Project_Repo\App_Frontend\IndigoLearn\node_modules\@react-native-community\cli-plugin-metro\node_modules\metro\src\IncrementalBundler.js:64:19)
> Task :app:createBundleDevDebugJsAndAssets FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
97 actionable tasks: 4 executed, 93 up-to-date
error resolveDependencies: Found duplicate dependency key 'undefined' in C:\Project_Repo\App_Frontend\IndigoLearn\index.js
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:createBundleDevDebugJsAndAssets'.
> Process 'command 'cmd'' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 10s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDevDebug -PreactNativeDevServerPort=8081
error resolveDependencies: Found duplicate dependency key 'undefined' in C:\Project_Repo\App_Frontend\IndigoLearn\index.js
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:createBundleDevDebugJsAndAssets'.
> Process 'command 'cmd'' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
I am facing the same issue when upgraded from
0.66.4
to0.73.1
Please open a separate issue.
please check it once
Passing over to the Metro team as the build failed during bundling.
This looks like https://github.com/facebook/metro/issues/857#issuecomment-1276253449
TL;DR: - you likely have multiple versions of Metro in your node_modules
.
Make sure you have no explicit Metro dependencies in your package.json
, delete your yarn.lock
and node_modules
and re-run Yarn.
okay so in dev dependency I have a package called "metro-react-native-babel-preset" but from the package, metro was missing, so I add the latest version of the metro now and it works, but I got a new error same while the time of building the app
Task :app:mergeDevDebugAssets FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
181 actionable tasks: 168 executed, 13 up-to-date
ERROR:[fonts/AntDesign.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\AntDesign.ttf [fonts/AntDesign.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\AntDesign.ttf: Resource and asset merger: Duplicate resources
ERROR:[fonts/Entypo.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Entypo.ttf [fonts/Entypo.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Entypo.ttf: Resource and asset merger: Duplicate resources
ERROR:[fonts/EvilIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\EvilIcons.ttf [fonts/EvilIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\EvilIcons.ttf: Resource and asset merger: Duplicate resources
ERROR:[fonts/Feather.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Feather.ttf [fonts/Feather.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Feather.ttf: Resource and asset merger: Duplicate resources
ERROR:[fonts/FontAwesome.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome.ttf [fonts/FontAwesome.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome.ttf: Resource and asset merger: Duplicate resources
ERROR:[fonts/FontAwesome5_Brands.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome5_Brands.ttf [fonts/FontAwesome5_Brands.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome5_Brands.ttf: Resource and asset merger: Duplicate resources
ERROR:[fonts/FontAwesome5_Regular.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome5_Regular.ttf [fonts/FontAwesome5_Regular.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome5_Regular.ttf: Resource and asset merger: Duplicate resources
ERROR:[fonts/FontAwesome5_Solid.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome5_Solid.ttf [fonts/FontAwesome5_Solid.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome5_Solid.ttf: Resource and asset merger: Duplicate resources
ERROR:[fonts/Fontisto.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Fontisto.ttf [fonts/Fontisto.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Fontisto.ttf: Resource and asset merger: Duplicate resources
ERROR:[fonts/Foundation.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Foundation.ttf [fonts/Foundation.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Foundation.ttf: Resource and asset merger: Duplicate resources
ERROR:[fonts/Ionicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Ionicons.ttf [fonts/Ionicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Ionicons.ttf: Resource and asset merger: Duplicate resources
ERROR:[fonts/MaterialCommunityIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\MaterialCommunityIcons.ttf [fonts/MaterialCommunityIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\MaterialCommunityIcons.ttf: Resource and asset merger: Duplicate resources
ERROR:[fonts/MaterialIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\MaterialIcons.ttf [fonts/MaterialIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\MaterialIcons.ttf: Resource and asset merger: Duplicate resources
ERROR:[fonts/Octicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Octicons.ttf [fonts/Octicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Octicons.ttf: Resource and asset merger: Duplicate resources
ERROR:[fonts/SimpleLineIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\SimpleLineIcons.ttf [fonts/SimpleLineIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\SimpleLineIcons.ttf: Resource and asset merger: Duplicate resources
ERROR:[fonts/Zocial.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Zocial.ttf [fonts/Zocial.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Zocial.ttf: Resource and asset merger: Duplicate resources
FAILURE: Build completed with 2 failures.
What went wrong: Execution failed for task ':app:mergeDevDebugAssets'.
[fonts/AntDesign.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\AntDesign.ttf [fonts/AntDesign.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\AntDesign.ttf: Error: Duplicate resources [fonts/Entypo.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Entypo.ttf [fonts/Entypo.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Entypo.ttf: Error: Duplicate resources [fonts/EvilIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\EvilIcons.ttf [fonts/EvilIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\EvilIcons.ttf: Error: Duplicate resources [fonts/Feather.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Feather.ttf [fonts/Feather.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Feather.ttf: Error: Duplicate resources [fonts/FontAwesome.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome.ttf [fonts/FontAwesome.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome.ttf: Error: Duplicate resources [fonts/FontAwesome5_Brands.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome5_Brands.ttf [fonts/FontAwesome5_Brands.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome5_Brands.ttf: Error: Duplicate resources [fonts/FontAwesome5_Regular.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome5_Regular.ttf [fonts/FontAwesome5_Regular.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome5_Regular.ttf: Error: Duplicate resources [fonts/FontAwesome5_Solid.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\FontAwesome5_Solid.ttf [fonts/FontAwesome5_Solid.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\FontAwesome5_Solid.ttf: Error: Duplicate resources [fonts/Fontisto.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Fontisto.tt[fonts/Fontisto.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Fontisto.ttf: Error: Duplicate resources [fonts/Foundation.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Foundation.ttf [fonts/Foundation.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Foundation.ttf: Error: Duplicate resources [fonts/Ionicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Ionicons.tt[fonts/Ionicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Ionicons.ttf: Error: Duplicate resources [fonts/MaterialCommunityIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\MaterialCommunityIcons.ttf [fonts/MaterialCommunityIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\MaterialCommunityIcons.ttf: Error: Duplicate resources [fonts/MaterialIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\MaterialIcons.ttf [fonts/MaterialIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\MaterialIcons.ttf: Error: Duplicate resources [fonts/Octicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Octicons.tt[fonts/Octicons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Octicons.ttf: Error: Duplicate resources [fonts/SimpleLineIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\SimpleLineIcons.ttf [fonts/SimpleLineIcons.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\SimpleLineIcons.ttf: Error: Duplicate resources [fonts/Zocial.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\src\main\assets\fonts\Zocial.ttf [fonts/Zocial.ttf] C:\Project_Repo\App_Frontend\IndigoLearn\android\app\build\intermediates\ReactNativeVectorIcons\fonts\Zocial.ttf: Error: Duplicate resources
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
What went wrong: java.lang.StackOverflowError (no error message)
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 42s
my package file
{
"name": "Fin1",
"version": "0.0.1",
"private": true,
"scripts": {
"android:dev": "ENVFILE=./env/.env.dev npx react-native run-android --variant=devDebug --appIdSuffix=dev",
"android:prod": "ENVFILE=./env/.env.prod npx react-native run-android --variant=prodDebug",
"android:prodBundle": "cd android && ENVFILE=./env/.env.prod ./gradlew clean && ./gradlew bundleProdRelease",
"android:prodApk": "cd android && ENVFILE=./env/.env.prod ./gradlew clean && ./gradlew assembleProdRelease",
"android:devRelease": "cd android && ENVFILE=./env/.env.dev ./gradlew clean && ./gradlew assembleDevRelease",
"ios:dev": "ENVFILE=./env/.env.dev react-native run-ios --scheme \"Fin1Dev\" --configuration \"Dev.Debug\"",
"codepush:androidDev": "appcenter codepush release-react -a IndigoLearn/1FIN-by-Indigolearn -d Dev -m -t 2.1.2",
"codepush:iosDev": "appcenter codepush release-react -a IndigoLearn/1FIN-by-Indigolearn-1 -d Dev -m -t 2.1.2",
"codepush:iosProd": "appcenter codepush release-react -a IndigoLearn-Prod/1FIN-By-IndigoLearn-1 -d Production -m -t 2.1.2",
"codepush:androidProd": "appcenter codepush release-react -a IndigoLearn-Prod/1FIN-By-IndigoLearn -d Production -m -t 2.1.2",
"start": "react-native start",
"test": "jest",
"lint": "eslint .",
"repo:cleanup": "rm -rf node_modules & rm -rf yarn.lock & yarn install & cd ios & rm -rf Podfile.lock & pod install & cd ..",
"android:winDev": "set \"ENVFILE=./env/.env.dev\" && npx react-native run-android --variant=devDebug --appIdSuffix=dev"
},
"dependencies": {
"@invertase/react-native-apple-authentication": "^2.2.2",
"@native-html/table-plugin": "^5.3.1",
"@react-native-async-storage/async-storage": "^1.11.11",
"@react-native-community/datetimepicker": "^6.7.5",
"@react-native-community/netinfo": "^9.3.7",
"@react-native-firebase/analytics": "^17.3.0",
"@react-native-firebase/app": "^17.3.0",
"@react-native-firebase/crashlytics": "^17.3.0",
"@react-native-firebase/dynamic-links": "^17.3.0",
"@react-native-firebase/messaging": "^17.3.0",
"@react-native-firebase/perf": "^17.3.0",
"@react-native-google-signin/google-signin": "^9.0.2",
"@react-native-masked-view/masked-view": "^0.2.8",
"@react-navigation/drawer": "^6.6.0",
"@react-navigation/native": "^6.1.4",
"@react-navigation/stack": "^6.3.14",
"axios": "^1.3.3",
"lottie-ios": "^4.1.3",
"lottie-react-native": "^5.1.5",
"metro": "^0.75.1",
"react": "18.2.0",
"react-native": "0.71.3",
"react-native-animatable": "^1.3.3",
"react-native-calendars": "^1.1293.0",
"react-native-canvas": "^0.1.38",
"react-native-circular-progress": "^1.3.8",
"react-native-code-push": "^7.1.0",
"react-native-config": "^1.5.0",
"react-native-deck-swiper": "^2.0.13",
"react-native-device-info": "^10.4.0",
"react-native-document-picker": "^8.1.3",
"react-native-email-link": "^1.14.3",
"react-native-exception-handler": "^2.10.10",
"react-native-fbsdk-next": "^11.1.0",
"react-native-file-viewer": "^2.1.5",
"react-native-flash-message": "^0.4.0",
"react-native-freshchat-sdk": "^4.2.1",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "^2.9.0",
"react-native-gifted-charts": "^1.2.42",
"react-native-hyperlink": "^0.0.22",
"react-native-image-crop-picker": "^0.39.0",
"react-native-image-zoom-viewer": "^3.0.1",
"react-native-in-app-review": "^4.2.1",
"react-native-linear-gradient": "^2.6.2",
"react-native-material-ripple": "^0.9.1",
"react-native-modal": "^13.0.1",
"react-native-modal-datetime-picker": "^14.0.1",
"react-native-multicolor-progress-bar": "^2.0.0",
"react-native-offline": "^6.0.2",
"react-native-orientation": "^3.1.3",
"react-native-paper": "^5.2.0",
"react-native-pg-react-native-sdk": "^2.1.6",
"react-native-progress": "^5.0.0",
"react-native-razorpay": "^2.3.0",
"react-native-reanimated": "^2.14.4",
"react-native-render-html": "^6.3.4",
"react-native-restart": "^0.0.27",
"react-native-safe-area-context": "^4.5.0",
"react-native-screens": "^3.20.0",
"react-native-share": "^8.2.0",
"react-native-shimmer-placeholder": "^2.0.9",
"react-native-slider": "^0.11.0",
"react-native-sms-retriever": "^1.1.1",
"react-native-splash-screen": "^3.3.0",
"react-native-svg": "^13.8.0",
"react-native-swipe-gestures": "^1.0.5",
"react-native-swipeable-rating": "^0.2.1",
"react-native-swiper-flatlist": "^3.0.18",
"react-native-vector-icons": "^9.2.0",
"react-native-video": "file:../Resources/vdocipher_iOS/react-native-video-fix-fairplay",
"react-native-video-vdo": "file:../Resources/vdocipher_iOS/react-native-video-vdo-master",
"react-native-webview": "^11.26.1",
"react-native-youtube-iframe": "^2.2.2",
"react-navigation-backhandler": "^2.0.1",
"react-redux": "^8.0.5",
"recyclerlistview": "^4.2.0",
"redux": "^4.2.1",
"redux-persist": "^6.0.0",
"redux-thunk": "^2.4.2",
"vdocipher-rn-bridge": "^1.12.2"
},
"devDependencies": {
"@babel/core": "^7.20.12",
"@babel/runtime": "^7.20.13",
"@react-native-community/eslint-config": "^3.2.0",
"babel-jest": "^29.4.3",
"eslint": "^8.34.0",
"jest": "^29.4.3",
"metro-react-native-babel-preset": "^0.75.0",
"react-test-renderer": "18.2.0",
"redux-logger": "^3.0.6"
},
"jest": {
"preset": "react-native"
}
}
Hi @NikhilMasurkar - I just installed your package.json
and I can see the issue, which actually caused both problems. Your dependency react-native-multicolor-progressbar (CC maintainer @areebaSami) has a dependency
on react-native@0.68
(as well as react@17
), which will be causing multiple versions of React, RN and Metro in your node_modules
.
Remove that dependency and you should be ok.
but from the package, metro was missing, so I add the latest version of the metro now and it works
You can (and should) remove metro
from your own package.json
(you should keep metro-react-native-babel-preset
). You'll havemetro
via react-native
-> @react-native-community/cli[-plugin-metro]
-> metro
, so you don't need to depend on it explicitly and doing so could give you problems the next time you update.
hi, @robhogan do I need to uninstall this dependency? if I'll uninstall then instead which package is best?
hi, @robhogan do I need to uninstall this dependency? if I'll uninstall then instead which package is best?
All I can tell you is that your build issues are caused by that package, rather than a bug in Metro or React Native. You'll need to decide the best approach to resolve that.
You could patch or fork the package, raise an issue there and ask the maintainer to fix it, migrate to something else, vendor the package's code into your app, or build your own. You could even get around this particular issue by forcing your package resolutions.
If you need help with any of that I'd suggest asking on StackOverflow. This isn't the place for that kind of support. Good luck!
New Version
0.71.3
Old Version
0.64.2
Build Target(s)
Could not resolve ':app:createBundleDevDebugJsAndAssets'. and java.lang.StackOverflowError (no error message) this error
Output of
react-native info
Issue and Reproduction Steps
android/app/build.gradle
android/build.gradle..............................................................