Content-Length: 251459 | pFad | http://github.com/vercel/micro/pull/484

89 Use pathToFileURL to handle windows file path by Marcel-G · Pull Request #484 · vercel/micro · GitHub
Skip to content

Use pathToFileURL to handle windows file path #484

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

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/vercel/micro/pull/484

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy