Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

クローズ 初心者向け
#1,353 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TanStack/tanstack.com のほかの issue

TanStack/tanstack.com の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。