Closed 19sajib closed 1 year ago
don't include '-e with-tailwindcss'
instead manually install it on your next js after npx create-next-app
just go to tailwind website and find the nextjs docs, i did this to my project, and it's working now
thank you for your reply. I have also found this answer but now I want to know why this command behaves like this!
Proper way to install Next.js with Tailwind CSS would be:
npx create-next-app project_name cd project_name npm install -D tailwindcss postcss autoprefixer npx tailwindcss init -p
npx create-next-app -e with-tailwindcss
is the command I have used. In the pages folder instead of the js file, it's created the tsx file.