Skip to content

Running pnpm start on Windows with @callstack/repack@5.2.0 #166

@cn1001wang

Description

@cn1001wang

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions