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

Fix async import of playroom config on Windows #338

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

askoufis
Copy link
Contributor

@askoufis askoufis commented Mar 3, 2024

Fixes #307.

When working with windows paths, a path like C:\foo\bar will be misinterpreted by import. It interprets the path as a URL and thinks C: is a protocol. url.pathToFileURL addresses this by converting the path to a proper file URL, which import interprets correctly.

Verified the fix on my Windows machine.

@askoufis askoufis requested a review from a team as a code owner March 3, 2024 05:52
Copy link

changeset-bot bot commented Mar 3, 2024

🦋 Changeset detected

Latest commit: 577928d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
playroom Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@askoufis askoufis merged commit f88a4e6 into master Mar 4, 2024
6 checks passed
@askoufis askoufis deleted the fix-import-config-windows branch March 4, 2024 00:27
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.

Windows machine giving Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: from version 0.33.0 upwards
2 participants