Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: incorrect tailwindcss configuration with tanstack start docs using postcss will not work. #7123

Open
2 tasks done
nebulisx opened this issue Apr 4, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@nebulisx
Copy link

nebulisx commented Apr 4, 2025

Describe the bug

By reading the docs for configuring shadcn ui with tanstack start, at the docs you use tailwindcss postcss but it won't work, it should use vite plugin instead. As follows:

// app.config.ts
import { defineConfig } from "@tanstack/react-start/config";
import tailwindcss from "@tailwindcss/vite";

export default defineConfig({
  tsr: {
    appDirectory: "src",
  },
  vite: {
    plugins: [tailwindcss()],
  },
});

Affected component/components

tailwindcss configuration

How to reproduce

install tailwindcss using postcss as the docs, it won't work.

Codesandbox/StackBlitz link

No response

Logs

System Info

System: MacOs
Browser: all
using Bun 1.2.0

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@nebulisx nebulisx added the bug Something isn't working label Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant