Skip to content

mailto links broke with 1.0.0-next.200 #2909

Description

@philippdormann

Describe the bug

when running npm run build on a kit@1.0.0-next.200 project, the build fails when processing mailto: links.

I think the commit f12bbcc (is_root_relative helper) might be related to this issue

Reproduction

https://stackblitz.com/github/philippdormann/sveltekit-next-200-reproduction-mailto

https://github.com/philippdormann/sveltekit-next-200-reproduction-mailto

Logs

✓ 14 modules transformed.
.svelte-kit/output/server/app.js                      0.07 KiB
.svelte-kit/output/server/chunks/app-15aed414.js      48.53 KiB
.svelte-kit/output/server/chunks/layout-16a4b7f3.js   0.23 KiB
.svelte-kit/output/server/chunks/error-1cd6baa4.js    0.71 KiB
.svelte-kit/output/server/chunks/index-13515498.js    0.24 KiB

Run npm run preview to preview your production build locally.

> Using @sveltejs/adapter-static
> ENOENT: no such file or directory, mkdir 'build/mailto:hi@example.com'
Error: ENOENT: no such file or directory, mkdir 'build/mailto:hi@example.com'

System Info

❯ npx envinfo --system --binaries --browsers --npmPackages "{svelte,@sveltejs/*,vite}"

  System:
    OS: Windows 10 10.0.22000
    CPU: (6) x64 Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz
    Memory: 16.98 GB / 31.94 GB
  Binaries:
    Node: 17.0.1 - ~\AppData\Local\Volta\tools\image\node\17.0.1\node.EXE
    Yarn: 1.22.11 - ~\AppData\Local\Volta\tools\image\yarn\1.22.11\bin\yarn.CMD
    npm: 8.1.0 - ~\AppData\Local\Volta\tools\image\node\17.0.1\npm.CMD
  Browsers:
    Chrome: 96.0.4664.45
    Edge: Spartan (44.22000.120.0), Chromium (96.0.1054.34), ChromiumDev (93.0.910.5)
    Internet Explorer: 11.0.22000.120
  npmPackages:
    @sveltejs/adapter-static: 1.0.0-next.21 => 1.0.0-next.21
    @sveltejs/kit: 1.0.0-next.200 => 1.0.0-next.200
    svelte: ^3.44.0 => 3.44.2

Severity

annoyance

Additional Information

everything works fine on 1.0.0-next.199

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingp1-importantSvelteKit cannot be used by a large number of people, basic functionality is missing, etc.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions