Skip to content

ERR_UNSUPPORTED_ESM_URL_SCHEME when running npm (or pnpm) run +folder on Windows (Node v25) #1

@jsperry0807-rgb

Description

@jsperry0807-rgb

When creating a new KosmoJS project and running the +folder script on Windows, Node throws an ERR_UNSUPPORTED_ESM_URL_SCHEME error.
It appears to be related to Windows absolute paths (C:...) not being converted to file:// URLs before being passed to the ESM loader.

Steps to Reproduce:
npx kosmojs my-app
cd my-app
npm install
npm run +folder

Environment:
OS: Windows 11 Home
PNPM: v10.28.2
Node.js: v25.5.0
Package manager: npm
Installed via: npx kosmojs my-app

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions