Skip to content

'Cannot get /' on a TanStack Start project in vite preview mode #202

@netimen

Description

@netimen

Which project does this relate to?

Start

Describe the bug

I've create a Start project with pnpm create @tanstack/start@latest. I have not touched the code, I'm just installing the dependencies and launching the project. Dev version works ok, but when I try to build and preview the production build, I get Cannot GET /:

Image

Your Example Website or App

I didn't change anything in the code

Steps to Reproduce the Bug or Issue

  1. create the project pnpm create @tanstack/start@latest.
Image
  1. cd test
  2. pnpm build && pnpm serve
Image
  1. go to localhost:4173 in the browser

Expected behavior

I expect to see the sample project, something like this (this is a screenshot from running the dev build):

Image

Screenshots or Videos

No response

Platform

  • Router / Start Version: 1.132.0
  • OS: OS X 15.3.1 (24D70)
  • Browser: Safari and a Chromium-based
  • Browser Version: Safari 18.3
  • Bundler: vite
  • Bundler Version: 7.1.9

Additional context

I tried to launch the server manually node dist/server/server.js. It just quits immediately

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions