Environment
- OS: Windows 11
- Node: v22.16.0
- pnpm: 9.15.3
@callstack/repack: 5.2.3
react-native: 0.78.2
Background
Running pnpm start on Windows with @callstack/repack@5.2.0 throws:
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:'
This is fixed by upgrading to @callstack/repack@5.2.3 (see callstack/repack#1290 and callstack/repack#1302). After upgrading, pnpm start works correctly.