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

[v10] Fix expo template with RN upgrade #2745

Merged
merged 2 commits into from
Aug 14, 2024
Merged

Conversation

lindboe
Copy link
Contributor

@lindboe lindboe commented Aug 14, 2024

Please verify the following:

  • yarn test jest tests pass with new tests, if relevant
  • yarn lint eslint checks pass with new code, if relevant
  • yarn format:check prettier checks pass with new code, if relevant
  • README.md (or relevant documentation) has been updated with your changes

Describe your PR

Updates the RN version in use to fix an issue that was preventing all Android builds: expo/expo#31005.

Once I upgraded, though, I ran into another issue: the JS bundle fails to load with:

```
iOS Bundling failed 3255ms node_modules/expo/AppEntry.js (1892 modules)
Unable to resolve "react-native/Libraries/Utilities/DevLoadingView" from "node_modules/@expo/metro-runtime/build/LoadingView.native.js"
```

This is in a conditional in LoadingView.native.js that should load the correct one, and does, so this appears to be an issue with conditional requires. I'm not sure how to fix that underlying issue just yet, so patching for now.

Will file a ticket to follow up with better long-term fixes, including potentially pinning the template version in use.

Without this patch, the JS bundle fails to load with:

```
iOS Bundling failed 3255ms node_modules/expo/AppEntry.js (1892 modules)
Unable to resolve "react-native/Libraries/Utilities/DevLoadingView" from "node_modules/@expo/metro-runtime/build/LoadingView.native.js"
```

This is in a conditional in LoadingView.native.js that should load the
correct one, and does, so this appears to be an issue with conditional
requires. I'm not sure how to fix that underlying issue just yet, so
patching for now.
@lindboe lindboe changed the base branch from master to v10 August 14, 2024 21:36
@lindboe
Copy link
Contributor Author

lindboe commented Aug 14, 2024

Follow-up issue here: #2746

@lindboe lindboe requested review from frankcalise and fpena and removed request for frankcalise August 14, 2024 21:49
Copy link
Collaborator

@fpena fpena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for doing this! 🚀

@lindboe lindboe merged commit 6e4e17a into v10 Aug 14, 2024
1 check passed
@lindboe lindboe deleted the lindboe/fix-expo-template branch August 14, 2024 21:54
@infinitered-circleci
Copy link

🎉 This PR is included in version 10.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

4 participants