Skip to content

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

Open

Description

@ARChilton

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions