Ultimate

X_URL_PATHNAME_AS_PATH

Means

a source reads .pathname off a URL built from import.meta.url (or destructures it, or builds a file:// URL from a string) and uses it as a filesystem path

Typical cause

new URL('..', import.meta.url).pathname percent-encodes a space (%20) and answers /C:/… on Windows, so the path names nothing

Fix

Bun.fileURLToPath(new URL('<specifier>', import.meta.url)), or join(import.meta.dir, '<segment>')

Listed under CLI and verify

This page as markdown