mcleme9
mcleme9

Reputation: 1

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

It seems to only be a problem when I add with-tailwindcss to the end of the command line? npx create-next-app -e with-tailwindcss project_name

Upvotes: 0

Views: 951

Answers (2)

P.E. Joëssel
P.E. Joëssel

Reputation: 1443

The with-tailwindcss template you are using is setup with typescript.

You can find the source here on GitHub,

Upvotes: 0

Rameez
Rameez

Reputation: 1712

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

More here: https://tailwindcss.com/docs/guides/nextjs

Upvotes: 1

Related Questions