Example playground: Start compat config never reaches Vite (`pnpm run dev -- --config`)
維護者通常 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,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TanStack/tanstack.com 的其他 Issue
-
AI dock input submits on Enter during IME composition (Japanese/Chinese/Korean input)可能已有人在做 @Brightbong92 於 1 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
TanStack/tanstack.com#1362 ·
維護者通常 1 天內回覆
-
Checkbox in dropdown doesn't scroll with items可能已有人在做 @6TELOIV 於 14 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 92/100
TanStack/tanstack.com#1304 ·
維護者通常 1 天內回覆
-
"bundle report" link navigates to 404 on Markdown docs可能已有人在做 @lukonik 於 44 天前認領。 未關閉source-audit
難度 1/5 1 小時以內 新手友好度 84/100
TanStack/tanstack.com#1195 ·
維護者通常 1 天內回覆
-
source-audit
難度 2/5 1-3 小時 新手友好度 68/100
TanStack/tanstack.com#1194 · 2 則留言 ·
維護者通常 1 天內回覆
-
source-audit
難度 2/5 1-3 小時 新手友好度 72/100
TanStack/tanstack.com#1177 · 1 則留言 ·
維護者通常 1 天內回覆
查看 TanStack/tanstack.com 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
NaturalIntelligence/fast-xml-parser#890 · 1 則留言 ·
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
zsviczian/obsidian-excalidraw-plugin#3000 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
pnpm/get.pnpm.io#68 ·
-
[BUG] Cloudflare KV binding 模式下 kvDriver.list() 沿用 EdgeOne 语义,字段名不匹配导致 key 格式下初始化 500 并耗尽 list 配额可能已有人在做 @wumingzhinu 今天認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 64/100
OpenListTeam/OpenList-Worker#125 ·
維護者通常 2 天內回覆
-
Android (vision-camera-location): HybridLocationManager never quits its HandlerThread on dispose未關閉
難度 2/5 1-3 小時 新手友好度 74/100
margelo/react-native-vision-camera#4217 ·
維護者通常 4 天內回覆