Bug: `vite start` silently serves broken dev server

Open Beginner friendly
#810 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
typescript
Domain
build-system

Research direction

Start by checking the package script that runs with pnpm start, then compare its behavior with the documented Vite CLI commands. Reproduce with pnpm build && pnpm start; done means the start command uses the appropriate preview behavior and the root route no longer returns an empty 404 response.

Written by the indexing model from the issue text.

Description

Running vite start (as opposed to vite preview) after vite build starts a Vite dev server that returns 404 for all routes with no error or warning. Since start is not a recognized Vite CLI subcommand (Vite CLI docs), Vite silently falls back to the default dev command - but without proper TanStack Start SSR integration, every request gets a 404 with an empty body.

Steps to Reproduce

  1. Run pnpm build && pnpm start
  2. Open http://localhost:5173/ - get a 404

Workaround

Change the script to "start": "vite preview".

Dominant language
TypeScript
Stars
1.1k
Forks
401
Avg merge
18h 44m
Merged PRs (30d)
55

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TanStack/tanstack.com

All issues in TanStack/tanstack.com

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.