How to Resolve TailwindCSS Setup Issues in a TODO App #200
-
In the setup section of a TODO app tutorial, TailwindCSS is not being applied correctly. In the past, with version 3, the command |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @hirohiro-sys, mkdir todo
cd todo
pnpm init
pnpm add @lazarv/react-server better-sqlite3 zod
pnpm add -D @types/better-sqlite3 @types/react @types/react-dom autoprefixer postcss tailwindcss@3 typescript
pnpx tailwindcss@3 init -p When both installing and using the So the only update in the tutorial would be including |
Beta Was this translation helpful? Give feedback.
Hi @hirohiro-sys,
The correct set of commands for Tailwind 3 would be:
mkdir todo cd todo pnpm init pnpm add @lazarv/react-server better-sqlite3 zod pnpm add -D @types/better-sqlite3 @types/react @types/react-dom autoprefixer postcss tailwindcss@3 typescript pnpx tailwindcss@3 init -p
When both installing and using the
init
command with the Tailwind 3 CLI and properly creating and using a CSS file imported in a server component, Tailwind 3 should still work.So the only update in the tutorial would be including
@3
fortailwindcss
for both commands. Please let me know if there's still other issues with Tailwind. Thanks!