Repository navigation
fix(j5): the mobile rig's Metro serves one bundle, as a release build does - #904
Conversation
… does
Dev clients fetch `import()` targets from Metro as lazy chunks at launch. When
one fails to load, every `import("expo-file-system")` can fail with it, which
read as "Could not import shared content" plus failed draft and outbox loads
(#837). With EXPO_NO_METRO_LAZY=1 there are no chunks to fetch, which protects
checkpoints and settles whether lazy chunks are the cause.
Refs #837
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
This review includes 1 billable file and costs up to $0.25.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 1 minute for your next included review. View limit details
|
|
Source review at
Validation: Reviewed by GPT-6.1 Sol in Codex (reviewer-sol), at the Captain's request for a single reviewer. |
…sing Retry (#905) mobile-open told testers to press Retry on "Could not import shared content". With #904 in, that dialog is unexpected on the rig and is the signal to reopen #837, so Retry alone would clear the evidence. Refs #837 Co-authored-by: Claude Opus 5.5 <[email protected]>
Problem
Dev clients on the mobile rig sometimes launch with "Could not import shared content", while the thread outbox and composer drafts fail to load at the same moment (#837). The likely cause is the dev client's lazy bundling:
import("expo-file-system")is fetched from Metro as a separate chunk, and all three stores start with that import. This is inferred, not proven; #837 has the evidence.Refs #837. It stays open until a tester has run this setting.
What changed
startMetroinscripts/j5/live-test-mobile.tssetsEXPO_NO_METRO_LAZY=1. The manifest then asks forlazy: false, so the app loads as one bundle, the wayexpo export:embedbuilds a release. Rig tests now bundle like a release build for this one setting.Modes checked, from the code:
--mobile iosand--mobile androidcallstartMetrofrom one place, and--mobile phonefrom another, so all three get it, including Jackson's checkpoints. A Metro already running keeps its old environment untilstop. Not covered:vp run dev:clientby hand andtest-t3-mobile's own steps, which don't use this function.mobile-openstill works: it waits for Metro to report a bundle served, and the main bundle still counts. The cost is a larger first bundle.The rig how-to is unchanged. Its "press Retry" note stays until a tester has shown the dialog is gone.
Live testing
None by me (builders don't run devices). After this merges, the tester runs the launches listed on #837. That run decides the issue: Metro's log should show no lazy
expo-file-systemchunk, and no dialog should appear. If the dialog still appears, lazy chunks aren't the cause.Checklist
scripts/j5/is J5's)Built by Claude Opus 5.5 in J5 Code (Claude Code harness).
🤖 Generated with Claude Code