Skip to content

+server.ts route inside .well-known is not type-checked #14138

@timephy

Description

@timephy

Describe the bug

I have a +server.ts file here src/routes/(search_engines)/.well-known/assetlinks.json/+server.ts.

It's contents are not correctly typechecked.
Neither by my LSP, nor by pnpm run check.


As you can see inside my editor it does not interpret the contents correctly. Which is weird, because inside the "neighbouring file" src/routes/(search_engines)/robots.txt/+server.ts everything is typechecked as expected.

Image

Not only imports are affected, but also pain syntax errors, such as using a variable that was never defined.

Reproduction

--

Logs

System Info

System:
    OS: macOS 15.5
    CPU: (20) x64 Intel(R) Xeon(R) W-2150B CPU @ 3.00GHz
    Memory: 792.44 MB / 64.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 24.5.0 - /usr/local/bin/node
    Yarn: 1.22.11 - /usr/local/bin/yarn
    npm: 11.5.1 - /usr/local/bin/npm
    pnpm: 10.13.1 - /usr/local/bin/pnpm
    bun: 1.0.25 - /usr/local/bin/bun
  Browsers:
    Chrome: 138.0.7204.184
    Safari: 18.5
  npmPackages:
    @sveltejs/adapter-node: ^5.2.13 => 5.2.13 
    @sveltejs/adapter-static: ^3.0.8 => 3.0.8 
    @sveltejs/enhanced-img: ^0.6.1 => 0.6.1 
    @sveltejs/kit: 2.27.0 => 2.27.0 
    @sveltejs/vite-plugin-svelte: ^6.1.0 => 6.1.0 
    svelte: 5.37.3 => 5.37.3 
    vite: ^7.0.6 => 7.0.6

Severity

serious, but I can work around it

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions