Example playground: Start compat config never reaches Vite (`pnpm run dev -- --config`)
メンテナーはふだん 1 日以内に返信
関連するプルリクエストがすでにマージされています。
- #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 config を渡し、報告されたサーバーエラーなしで 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時間 27分
- マージ済み PR(30日)
- 66
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TanStack/tanstack.com のほかの issue
-
難易度 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 が 45 日前に担当しました。 オープンsource-audit
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
TanStack/tanstack.com#1195 ·
メンテナーはふだん 1 日以内に返信
-
source-audit
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
TanStack/tanstack.com#1177 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Tanstack Router docs are missing documentation present in Tanstack Start docs対応中かも @bhaveshdesale が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
TanStack/tanstack.com#1059 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
TanStack/tanstack.com の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
status:approved type:bug
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
stage:4
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
ilan-pinto/roaring-lions#598 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Frontmatter next to `src:` is applied to every imported slide, not only the first (undocumented)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信