adrianhajdin / project_graphql_blog

With featured and recent posts, categories. full markdown articles, author information, comments, and much more, this fully responsive CMS Blog App is the best Blog Application that you can currently find on YouTube. And what's best of all is that you and your clients can manage the blog from a dedicated Content Management System.
https://jsmastery.pro
1.47k stars 347 forks source link

Why is create-next-app command creating .tsx files instead of .js files? #39

Closed 19sajib closed 1 year ago

19sajib commented 2 years ago

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.

Dreula commented 2 years 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

19sajib commented 2 years ago

thank you for your reply. I have also found this answer but now I want to know why this command behaves like this!

Smokeengine commented 1 year ago

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