fix: run-android device not found on change from deviceId to device#2595
Merged
thymikee merged 1 commit intoreact-native-community:mainfrom Feb 12, 2025
High5Apps:main
Merged
fix: run-android device not found on change from deviceId to device#2595thymikee merged 1 commit intoreact-native-community:mainfrom High5Apps:main
thymikee merged 1 commit intoreact-native-community:mainfrom
High5Apps:main
Conversation
szymonrybczak
approved these changes
Feb 11, 2025
Collaborator
szymonrybczak
left a comment
There was a problem hiding this comment.
good call! thanks for fixing 🙏 (and sorry for breaking 🙈)
cortinico
approved these changes
Feb 12, 2025
High5Apps
added a commit
to High5Apps/organize-rn
that referenced
this pull request
Apr 24, 2025
- My PR to fix this was accepted and merged into @react-native-community/cli@17 - react-native-community/cli#2595 - react-native-community/cli@a46a903 - The RN 79 upgrade includes cli@18, so this warning can now be fixed without breaking things - 0cbdfa7 ``` warn The `deviceId` parameter is renamed to `device`. Please use the new `device` argument next time to avoid this warning. ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
npx react-native run-android --deviceId <deviceId>npx react-native run-android --device <deviceId>, to remove the deprecation warning. But then, instead of working as expected, I got the following error message (line link):--deviceIdin favour of--device#2377run-androidwith--deviceinstead of--deviceIdworks as expectedifstatement in line 229 was alwaysfalsebecausedeviceIdwas never present, since--deviceIdflag was no longer useddeviceIdinrunAndroid/index.tsto bedeviceinstead. Note that references todevice.deviceIdwere unchanged to keep this PR as minimal as possible.Test Plan:
run-android --list-devicesChecklist