Skip to content

Getting Error [ERR_UNSUPPORTED_ESM_URL_SCHEME] with electron-forge package #4264

Closed

Description

@t57ser

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Forge version

8.0.0-alpha.8

Electron version

42.1.0

Operating system

Windows 10

Last known working Forge version

7.11.1

Expected behavior

No error

Actual behavior

Following error is thrown: 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:'

Steps to reproduce

Build an electron app electron-forge package --platform win32 --arch x64

Additional information

Possibly related: #4214

Activity

  1. added theissue type on May 18, 2026
  2. added
    package
    on May 20, 2026
  3. self-assigned this
    on May 20, 2026
  4. added
    maybe-fixed-in-next
    on Jul 1, 2026
  5. MarshallOfSound commented on Jul 1, 2026

    @MarshallOfSound
    Member

    This is fixed in alpha.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugmaybe-fixed-in-nextpackageplatform/windows

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions