Skip to content

fix(iOS): fallback to old path when dynamic resolve fails#46432

Closed
okwasniewski wants to merge 1 commit into
facebook:mainfrom
okwasniewski:fix/hermes-engine-path
Closed

fix(iOS): fallback to old path when dynamic resolve fails#46432
okwasniewski wants to merge 1 commit into
facebook:mainfrom
okwasniewski:fix/hermes-engine-path

Conversation

@okwasniewski
Copy link
Copy Markdown
Contributor

Summary:

This PR is a follow-up after #46181 this change makes sure that if the require.resolve fails we still fall back to the old behavior.

The require.resolve was failing for local builds of OOT platforms (because in OOT platforms mono repo react-native is renamed to react-native-platform-name)

Changelog:

[IOS] [FIXED] - Fallback to old resolve mechanism when node require fails to resolve react native path

Test Plan:

CI Green

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 11, 2024
@okwasniewski okwasniewski changed the title fix: fallback to old path when dynamic resolve fails fix(iOS): fallback to old path when dynamic resolve fails Sep 11, 2024
@facebook-github-bot facebook-github-bot added p: Callstack Partner: Callstack Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Sep 11, 2024
@okwasniewski
Copy link
Copy Markdown
Contributor Author

cc: @cipolleschi

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Sep 13, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cipolleschi merged this pull request in 3cbaddb.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @okwasniewski in 3cbaddb

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Callstack Partner: Callstack Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants