-
-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Description
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:
pnpm create @tanstack/start@latestconfigures Tailwind even when choosing "No" for Tailwind during setup #270- Start includes Tailwind even if not requested #257
- Tanstack Start | Selecting "No" for Tailwind still installs Tailwind #242
- Tailwind being installed even if I didn't selected it in the CLI #85
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
- Run the following command:
pnpm create @tanstack/start@latest- Select these options:
- Project name: `your-project-name`
- Tailwind CSS: No // Key selection
- Toolchain: ESLint
- Deployment adapter: Nitro
- Add-ons: Query
- Examples: none- Check the generated files:
cd your-project-name
cat package.json | grep tailwind
cat vite.config.ts | grep tailwindActual 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/viteandtailwindcssshould NOT be inpackage.jsontailwindcss()plugin should NOT be invite.config.ts
Screenshots or Videos
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
Labels
No labels