Why does Next.js install both Typescript and Javascript?

Viewed 56

When I run this command npx create-next-app --typescript --example with-tailwindcss my_project my project end up looking like this:

enter image description here

How can I install Next.js with Typescript and Tailwindcss without the Javascript files?

1 Answers

Look at this official Git repo Next.js + Tailwind CSS Example you need to run npx create-next-app --example with-tailwindcss with-tailwindcss-app or npx create-next-app --example with-tailwindcss your-app-name-here

Related