Skip to content

Remote Functions don't work in node_modules #13979

@ottomated

Description

@ottomated

Describe the bug

I want to define shared remote functions in a package of my monorepo. However, they can only live in src/lib and src/routes here.

Reproduction

N/A

Logs

System Info

System:
    OS: Linux 6.13 Fedora Linux 41 (Forty One)
    CPU: (24) x64 AMD Ryzen 9 7900 12-Core Processor
    Memory: 16.46 GB / 30.48 GB
    Container: Yes
    Shell: 3.7.1 - /bin/fish
  Binaries:
    Node: 22.15.1 - ~/.volta/tools/image/node/22.15.1/bin/node
    Yarn: 4.1.1 - ~/.volta/tools/image/yarn/4.1.1/bin/yarn
    npm: 10.9.2 - ~/.volta/tools/image/node/22.15.1/bin/npm
    pnpm: 10.12.4 - ~/.volta/bin/pnpm
    bun: 1.2.15 - ~/.bun/bin/bun
  Browsers:
    Chrome: 138.0.7204.49
  npmPackages:
    @sveltejs/adapter-cloudflare: catalog: => 7.0.5 
    @sveltejs/kit: catalog: => https://pkg.pr.new/sveltejs/kit/@sveltejs/kit@13957
    @sveltejs/vite-plugin-svelte: catalog: => 6.0.0-next.3 
    svelte: catalog: => https://pkg.pr.new/svelte@15844
    vite: catalog: => 7.0.3

Severity

blocking an upgrade

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature / enhancementNew feature or requestneeds-decisionNot sure if we want to do this yet, also design work needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions