You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: gluestack nativewind
init commit
* fix: metro runs and tests
* fix: app builds without rebuild in wsl
* docs: update for new local build on my setup
* ci: updates
* fix: variant mapping well enough for android studio build
* fix: bundle_or_skip for variants also test it
* refactor: cleanup bundle_or_skip
* fix: set deps from expo-doctor
* fix: expo warning
* fix: settings inputs
* fix: standarized layout for settings
* fix: input selection
Copy file name to clipboardExpand all lines: .cursor/rules/wsl-unison-setup.mdc
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,3 +48,28 @@ To remove the substitution later:
48
48
```cmd
49
49
subst X: /d
50
50
```
51
+
52
+
## NativeWind ESM Issue (Metro on Windows)
53
+
54
+
NativeWind v4 has a known issue where Metro cannot load the config on Windows due to ESM path handling. This causes errors like:
55
+
```
56
+
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
57
+
```
58
+
59
+
**Workaround**: Pre-bundle on WSL, then build on Windows.
60
+
61
+
1. **Pre-bundle on WSL** (when JS/CSS changes):
62
+
```bash
63
+
cd /home/william/not_connected_to_windows/CalendarNotification
64
+
yarn bundle:android --dev=true
65
+
```
66
+
67
+
2. **Build on Windows** (uses pre-built bundle):
68
+
```powershell
69
+
cd X:\android
70
+
.\gradlew assembleDebug
71
+
```
72
+
73
+
The `scripts/bundle_or_skip.js` wrapper automatically detects and copies the pre-built bundle, skipping Metro on Windows. This is configured via `cliFile` in `android/app/build.gradle`.
0 commit comments