tanstack-cli --router-only project tanstack-query add on scaffolds a tanstack-start router.tsx

オープン
#522 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@tannerlinsley がすでに取り組んでいます。

2026年11月19日 から。

  • #584 @tannerlinsley による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
react, typescript
領域
cli

調査の方向性

Start by reproducing the report: create a React app with --router-only, then run add tanstack-query and check the generated files. The payload does not name the add-on source files, so find where the tanstack-query add-on writes router.tsx and where it inserts the provider. Done means the add-on no longer creates an unused router.tsx and the app root is wrapped in a query provider. The request to support --router-only on create is a separate question; confirm with maintainers before changing it.

索引モデルが issue の本文から書いたものです。

説明

Which project does this relate to?

Create Tanstack App

Describe the bug

Tanstack query add-on command adds a router.tsx file which is unused and doesn't wrap the app in a query provider like the previous cli tooling used to do.

Your Example Website or App

http://#

Steps to Reproduce the Bug or Issue

If you create a new app: I used this command:

pnpm dlx @tanstack/cli@latest create frontend \ 
  --router-only \
  --framework react \
  --package-manager pnpm \
  --toolchain eslint \
  --no-examples \
  --tailwind \
  --no-git \
  -y

I then added some add-ons as you can no longer add add-ons through the create interactive cli for router only

pnpm dlx @tanstack/cli@latest add \             
  shadcn \       
  t3env \            
  tanstack-query \        
  paraglide \         
  compiler 
Expected behavior

For the cli command to be able to accept router-only flag or for the router-only cli to enable add ons as part of start up

Screenshots or Videos

No response

Platform

MacOS

Additional context

No response

主要言語
TypeScript
スター
1.3k
フォーク
188
平均マージ
5時間 30分
マージ済み PR(30日)
42

環境構築

はじめの一歩

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

TanStack/cli のほかの issue

TanStack/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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