Commit 738478e
fix(mobile): remove Metro-incompatible require of RN internal LaunchArguments
Metro statically resolves all require() calls at bundle time, so even inside
a try/catch the bundler throws "Unable to resolve module" for internal RN paths
that don't exist in the installed version. Replaced with NativeModules-only
fallback (ExpoLaunchArguments ?? LaunchArguments) which is evaluated at runtime.
Also adds .npmrc node-linker=hoisted so pnpm lays out a flat node_modules tree
that Metro can traverse without symlink issues.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 6c2020f commit 738478e
1 file changed
+15
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments