Skip to content

fix: import the detected adapter via a file URL so adapter-auto works on Windows - #16618

Open
Nic-Polumeyv wants to merge 2 commits into
sveltejs:version-3from
Nic-Polumeyv:fix-adapter-auto-windows-import
Open

fix: import the detected adapter via a file URL so adapter-auto works on Windows#16618
Nic-Polumeyv wants to merge 2 commits into
sveltejs:version-3from
Nic-Polumeyv:fix-adapter-auto-windows-import

Conversation

@Nic-Polumeyv

Copy link
Copy Markdown
Contributor

On Windows, adapter-auto fails with ERR_UNSUPPORTED_ESM_URL_SCHEME when importing the detected adapter: resolve_peer returns an absolute drive-letter path, and Node's ESM loader only accepts those as file:// URLs. import_peer in packages/kit has the same raw-path import but hides the failure behind its bare-specifier fallback, so it's left alone here.

@pkg-svelte-dev

pkg-svelte-dev Bot commented Aug 3, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 3d4324e:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/3d4324ea5541ee9f20d6560ce5ba14eaa90698f2

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/16618

Note

This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed.

@changeset-bot

changeset-bot Bot commented Aug 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3d4324e

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

This PR includes changesets to release 3 packages
Name Type
@sveltejs/adapter-auto Patch
@sveltejs/kit Patch
@sveltejs/package 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

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.

1 participant