DEV Community

Cover image for Set Up ShadCN UI with Tailwind CSS v3 & React 19: Fix Import Errors Like a Pro!
Sumonta Saha Mridul
Sumonta Saha Mridul

Posted on

2 1 1 1 1

Set Up ShadCN UI with Tailwind CSS v3 & React 19: Fix Import Errors Like a Pro!

In this tutorial, we’ll walk you through setting up ShadCN UI in your Vite + React 19 project with Tailwind CSS v3. You’ll learn how to install ShadCN UI, configure tsconfig.app.json to resolve path conflicts, and fix import errors using legacy peer dependencies. Plus, we’ll add a button component and customize it with a destructive variant. If you’re facing TypeScript errors, we’ve got a quick fix for that too!

🔹 Topics Covered:

  • ✅ Install ShadCN UI & Fix npm Dependency Issues
  • ✅ Add Components (Button, Navbar) with Tailwind CSS
  • ✅ Solve TypeScript Errors & Configure Aliases in vite.config.ts
  • ✅ Apply Custom Styles & Theme Variants

Missed our previous video?

👨‍💻 Follow us on GitHub and LinkedIn:

AWS Q Developer image

Your AI Code Assistant

Ask anything about your entire project, code and get answers and even architecture diagrams. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Start free in your IDE

Top comments (0)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video

👋 Kindness is contagious

If you found this post useful, consider leaving a ❤️ or a nice comment!

Got it