Skip to content

Bug: Tailwind CSS installed despite selecting "No" in CLI prompt #279

@unhhyyeexx

Description

@unhhyyeexx

Which project does this relate to?

Create Tanstack App

Describe the bug

Whn running pnpm create @tanstack/start@latest, if I select "No" for the Tailwind CSS prompt, the CLI still installs Tailwind dependencies and adds the Tailwind plugin to vite.config.ts.

duplicate:

This issue has been reported multiple times but appears to still be unresolved. I'd like to help fix this if confirmed as a bug.

Your Example Website or App

.

Steps to Reproduce the Bug or Issue

Steps to Resproduce

  1. Run the following command:
pnpm create @tanstack/start@latest
  1. Select these options:
- Project name: `your-project-name`
- Tailwind CSS: No // Key selection
- Toolchain: ESLint
- Deployment adapter: Nitro
- Add-ons: Query
- Examples: none
  1. Check the generated files:
cd your-project-name
cat package.json | grep tailwind
cat vite.config.ts | grep tailwind

Actual Result:
Despite selecting "No", Tailwind dependencies are still present:

package.json:

"dependencies": {
  "@tailwindcss/vite": "^4.0.6",
  "tailwindcss": "^4.0.6"
}

vite.config.ts:

import tailwindcss from '@tailwindcss/vite'

export default defineConfig({
  plugins: [
    tailwindcss(), // Should not be here
  ],
})

Expected behavior

When selecting "No" for Tailwind CSS:

  • @tailwindcss/vite and tailwindcss should NOT be in package.json
  • tailwindcss() plugin should NOT be in vite.config.ts

Screenshots or Videos

Image Image

Platform

  • @tanstack/react-start: 1.132.0
  • OS: macOS
  • Node.js: v22.19.0
  • Package Manager: pnpm 10.28.0

Additional context

I'd like to help fix this issue if confirmed as a bug.
Would you be open to a PR that fixes this? I can!

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