Skip to content

Start Server Function cannot work correct in Bun Production mode #5328

Closed

Description

@nhattran998

Which project does this relate to?

Start

Describe the bug

Thanks for the awesome lib! In the POC stage for production mode --> Choose Bun + Tanstack Start [https://github.com/TanStack/router/tree/main/examples/react/start-bun], like the image below.

Image

So how can I fix this one?

Your Example Website or App

http://localhost:3000/demo/start/server-funcs

Steps to Reproduce the Bug or Issue

Follow the guide

  1. Build the project: "bun run build"
  2. Start application: "bun start" [bun run server.ts]
  3. Go to [http://localhost:3000/demo/start/server-funcs] --> Add new Todo
  4. The request will fail with a 404 status, like the image below
Image

Expected behavior

Can run the server function normally like "dev mode" -> "vite dev"

Screenshots or Videos

No response

Platform

  • Router / Start Version: newest - 1.132.27
  • OS: macOS
  • Browser: Chrome + Commet
  • Browser Version: 140.0.7339.210
  • Bundler: Vite
  • Bundler Version: newest

Activity

  1. schiller-manuel commented on Oct 1, 2025

    @schiller-manuel
    Collaborator

    cc @magnusmay

  2. changed the title [-][Bug] Start Server Function cannot work correct in Bun Production mode[/-] [+]Start Server Function cannot work correct in Bun Production mode[/+] on Oct 1, 2025
  3. nhattran998 commented on Oct 13, 2025

    @nhattran998
    Author

    Waiting two weeks 🧑‍🍳 Hope will have anyone help us this one 🙏

  4. erikmay commented on Oct 13, 2025

    @erikmay
    Contributor

    @harrytran998 can you please share a reproduction for your issue?

  5. nhattran998 commented on Oct 14, 2025

    @nhattran998
    Author

    @magnusmay I used the example bun in this repo, lah, let's me recreate one and push onto GitHub.

    Seems the last version is working well with the newest bun and tanstack. So I will close this issue. Thanks for your contributions

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions