Rails + Inertia + React + ShadCN
Fix the @ issue by updating my vite.config.ts to this:
CSS styles not showing up
Required Changes
1. Import CSS in the Inertia entrypoint (app/javascript/entrypoints/inertia.ts)
app/javascript/entrypoints/inertia.ts)2. Configure Tailwind v4 to scan the correct directories (app/javascript/entrypoints/application.css)
app/javascript/entrypoints/application.css)3. Update TypeScript configuration (tsconfig.app.json)
tsconfig.app.json)4. Remove duplicate CSS loading (app/views/layouts/application.html.erb)
app/views/layouts/application.html.erb)Summary
Last updated