Skip to content
TypeScript

chore(mobile): e2e Metro serves no lazy chunks

Julius Marminge2e2d86cd6f34
diff --git a/scripts/mobile-e2e.ts b/scripts/mobile-e2e.ts
index 74eae11e3c0..abeb484e158 100644
--- a/scripts/mobile-e2e.ts
+++ b/scripts/mobile-e2e.ts
@@ -224,7 +224,9 @@ async function main() {
],
{
cwd: NodePath.join(REPO_ROOT, "apps/mobile"),
- env: { ...NodeProcess.env, APP_VARIANT: "development", CI: "1" },
+ // Lazily fetched chunks (dynamic import()) sometimes arrive broken on the pool's Android
+ // emulators and throw SyntaxErrors; release builds have no lazy chunks either.
+ env: { ...NodeProcess.env, APP_VARIANT: "development", CI: "1", EXPO_NO_METRO_LAZY: "1" },
// The app's console output arrives through Metro; keep it with the run.
stdio: [
"ignore",