Next.js Discord

Discord Forum

Typescript Preferences

Answered
American Crocodile posted this in #help-forum
Open in Discord
American CrocodileOP
Im choosing No using typescript because its gona be really simple app, my question is, do I really can use tsx file in future?
Answered by Chinese Chongqing Dog
This is because now you have to fix all the typescript errors, and before you haven't fixed them you can't build your project
View full answer

5 Replies

American CrocodileOP
I try say yes before but evertime i build it always get me type check error, its very annoying, so i ask here
Chinese Chongqing Dog
Yes it's not Problem to switch to typescript in the future.

Just to make clear why this is possible, Typescript is a extension of Javascript in mathematical terms you call this a superset. This means in Typescript you can use all features of Javascript and on top of that you get the types features from it, because plain old Javascript doesn't have types yet.

In my opinion you can use Javascript for really small Projects (testing something,prototyping... ), but in production environment I would not recommend using plain Javascript. Big Projects get really complex and the typesystem helps to prevent 'silly' errors.

Hope this helps
@American Crocodile I try say yes before but evertime i build it always get me type check error, its very annoying, so i ask here
Chinese Chongqing Dog
This is because now you have to fix all the typescript errors, and before you haven't fixed them you can't build your project
Answer