TanStack / TanStack/tanstack.com

Bug: `vite start` silently serves broken dev server

未关闭 适合新手
#810 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
1.1k
派生
401
平均合并
18 小时 14 分钟
30 天内合并 PR
56

描述

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".

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先检查随 pnpm start 运行的 package script,然后将其行为与文档中的 Vite CLI 命令进行比较。使用 pnpm build \u0026\u0026 pnpm start 重现;当 start 命令使用适当的 preview 行为,并且根路由不再返回空的 404 响应时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
build-system
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
冷清
描述清晰度
描述清楚
新手友好度
68/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。