Fix multiple metro versions#25912
Merged
Merged
Conversation
Contributor
|
Janic you're the og |
MariaHCD
approved these changes
Aug 28, 2023
Contributor
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-28.at.4.08.07.PM.movMobile Web - ChromeScreen.Recording.2023-08-28.at.4.56.04.PM.movMobile Web - SafariScreen.Recording.2023-08-28.at.4.33.44.PM.movDesktopScreen.Recording.2023-08-28.at.4.08.57.PM.moviOSScreen.Recording.2023-08-28.at.4.31.54.PM.movAndroidScreen.Recording.2023-08-28.at.4.58.53.PM.mov |
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Contributor
|
@janicduplessis I am getting this error I suspect it's coming from this PR. Can ou help me with this? |
Contributor
|
🚀 Deployed to staging by https://github.com/MariaHCD in version: 1.3.58-0 🚀
|
Contributor
Author
|
Can you try to delete and reinstall node_modules |
Contributor
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.58-5 🚀
|
Contributor
|
🚀 Deployed to staging by https://github.com/MariaHCD in version: 1.3.59-0 🚀
|
Contributor
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.59-5 🚀
|
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.
Details
I noticed the repo contains multiple versions of metro
To fix this I removed the old version of metro-config in package.json (we should not need to specify a version of it since it will be a transitive dependency. Then I ran
npm dedupe(https://docs.npmjs.com/cli/v8/commands/npm-dedupe) which reorganize node_modules to reduce duplication of packages. After this you can see there is only one copy of metro left. This will also help with other deps that might have been duplicated for no reason.This also caused some new lint errors to appear, probably because a newer version of eslint plugins is now being picked up.
The
react/function-component-definitionis trivial to fix, thereact/no-unknown-propertyseems to surface an actual issue. Props accessibilityrole and accessibilitylabel do not exist on div, those look like RN view props, which should map to role and aria-label on web.Fixed Issues
$
PROPOSAL: N/A
Tests
Verified that only one copy of metro exists and is the correct version for RN 0.72. Tested that app runs fine on all platforms.
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android