TanStack / TanStack/tanstack.com
Bug: `vite start` silently serves broken dev server
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 401
- Avg merge
- 18h 14m
- Merged PRs (30d)
- 56
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
- Run
pnpm build && pnpm start - Open
http://localhost:5173/- get a 404
Workaround
Change the script to "start": "vite preview".
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
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.
Assessment
- Tech stack
- typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100