Skip to content

"Server function info not found" when calling a server function that's *only* called on the server #8731

Open

Description

@lynnntropy

Which project does this relate to?

Start

Describe the bug

If you call a server function inside another server function, and that function is only ever called on the server (and never on the client), the function call will throw a Server function info not found for [ID] error. This only happens in a production build, not in development.

Complete minimal reproducer

https://codeberg.org/lynnntropy/tanstack-start-nested-serverfn-repro

Steps to Reproduce the Bug

  1. Clone the reproduction repo
  2. pnpm i && pnpm build && pnpm start
  3. Visit http://localhost:3000
  4. See the error

Expected behavior

The function call shouldn't throw an error.

Screenshots or Videos

Image

Platform

  • Start Version: 1.169.2
  • OS: Linux
  • Browser: Chrome
  • Browser Version: 154.0.8037.92
  • Bundler: Vite
  • Bundler Version: 8.3.4

Additional context

This might be related to #7943.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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