Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Example playground: Start compat config never reaches Vite (`pnpm run dev -- --config`)

已關閉 適合新手
#1,353 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

已經有一個關聯 PR 被合併了。

  • #1359 來自 @Sheraff —— 已合併

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
78/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
typescript, vite
領域
tooling

研究方向

從 src/utils/example-webcontainer-start.ts 中的 getWebContainerStartCommand 開始,並將其 pnpm 命令與 issue 中描述的可正常運作的終端命令進行比較。閱讀 tests/example-webcontainer-start.test.ts,該檔案目前斷言的是 -- 形式。一致地更新命令及其測試;完成標準是 playground 傳入 Vite 設定,且 Posts 流程在沒有回報的伺服器錯誤下正常運作。

由索引模型根據 Issue 內容生成。

描述

Found while testing TanStack Router PR #8504 in the playground. The rest of this was written by Claude (an AI agent), which investigated and reproduced it.


🤖 The Start async-context compatibility config is never applied in the example playground, so server functions fail there even with published packages.

Repro: open start-basic → Playground, wait for "Ready", click Posts. The server responds 500 with No Start context found in AsyncLocalStorage and the page shows posts is not iterable.

Cause: getWebContainerStartCommand returns pnpm run dev -- --config .tanstack/vite.config.mjs. The pnpm in the WebContainer forwards the -- to the script, which runs vite dev "--" "--config" ".tanstack/vite.config.mjs", and Vite ignores everything after --. So the async-context transform, noExternal and the self-runner config are never loaded.

Running the same thing without -- in the playground terminal (NAPI_RS_NATIVE_LIBRARY_PATH=@rolldown/binding-wasm32-wasi NITRO_DEV_RUNNER=self npx vite dev --config .tanstack/vite.config.mjs --port 3001) loads the config (Vite logs "Re-optimizing dependencies because vite config has changed"), and Home → Posts → a post works.

Possible fix: drop the -- for pnpm (pnpm forwards arguments after the script name; npm still needs --), or spawn vite directly. tests/example-webcontainer-start.test.ts currently asserts the -- form.

主要語言
TypeScript
星號
1.1k
分支
405
平均合併
5 小時 51 分鐘
30 天內合併 PR
58

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

TanStack/tanstack.com 的其他 Issue

查看 TanStack/tanstack.com 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。