Creating app folder but getting TypeScript files instead of JavaScript

Viewed 38

I was following a tutorial, to set up and create an react.js + tailwindcss app, I (and the tutorial maker) used.

npx create-next-app -e with-tailwindcss [app name]

the files and all are created but instead of getting javascript files (index.js etc) I get it in typescript (index.tsx).

(his)

enter image description here

(mine)

enter image description here

I read the next.js documentation and it said that if I wanted a TypeScript file I should add the --TypeScript flag to the command, which I didn't, yet still got the TypeScript files.

I followed the video and I didn't make anything different from his, so I'm wondering what did I make wrong and how to fix it.

Sorry for using any wrong tags I really don't know what I should've used.

1 Answers
Related