Skip to content
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

Gradle Daemon stuck when using latest react native - upgrade from 64 to 75 #2508

Open
sahad00 opened this issue Sep 17, 2024 · 4 comments
Open
Labels
question Further information is requested

Comments

@sahad00
Copy link

sahad00 commented Sep 17, 2024

"resolutions": { "@react-native-community/cli": "^13.0.0", "@react-native-community/cli-config": "^13.0.0", "@react-native-community/cli-debugger-ui": "^13.0.0", "@react-native-community/cli-doctor": "^13.0.0", "@react-native-community/cli-platform-android": "^13.0.0", "@react-native-community/cli-platform-ios": "^13.0.0", "@react-native-community/cli-server-api": "^13.0.0", "@react-native-community/cli-tools": "^13.0.0", "@react-native-community/cli-types": "^13.0.0" },

if I don't add resolution to 13 , default is 14 compatible with react native 0.75 my metro bundler is stuck at 0% for so long
once I added this resolution on one step downgrade the build is successful, what may be the reason ?

Screenshot 2024-09-17 at 4 48 01 PM
@sahad00 sahad00 added the question Further information is requested label Sep 17, 2024
@szymonrybczak
Copy link
Collaborator

Did you try running Metro with --reset-cache?

@sahad00
Copy link
Author

sahad00 commented Sep 18, 2024

Screenshot 2024-09-18 at 12 53 12 PM

Tried @szymonrybczak its stuck at 0% , tried for an hour no progress , If I downgrade works cool

@sahad00 sahad00 changed the title Metro Stuck when using latest react native - upgrade from 64 to 75 Gradle Daemon stuck when using latest react native - upgrade from 64 to 75 Sep 18, 2024
@szymonrybczak
Copy link
Collaborator

hey, that's not a Metro bundler 😅 That's output from Gradle - to fix this scenario you can try running:

./gradlew clean && ./gradlew —stop

and once again run npx react-native run-android

@sahad00
Copy link
Author

sahad00 commented Sep 18, 2024

@szymonrybczak I have tried this the ./gradlew clean itself is stuck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants