Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pathToFileURL to handle windows file path #484

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Marcel-G
Copy link

@Marcel-G Marcel-G commented May 30, 2023

This PR supersedes #475

Context

Resolves #474

Windows users get the following error:

[ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:'

See failing windows tests without this fix here https://github.com/Marcel-G/micro/actions/runs/5124530825/jobs/9216483962

Fix

On Windows, absolute paths must be valid file:// URLs.

CC @leerob & @t8g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v10 broken on windows
2 participants