r/reactjs • • Nov 04 '25

Discussion Is It Normal to Downgrade a Next.js Project from TypeScript to JavaScript?

Guys, is this normal?! I’ve been working on a Next.js project for 7 months and NORMALLY using TypeScript, and everything has been running perfectly, clean structure, proper types, no real issues.

Now, someone new just joined and suggested converting the entire codebase back to JavaScript, claiming that “TypeScript overcomplicates things and creates technical debt.”

The shocking part? They actually agreed with him, and he’s already doing the conversion, even planning to go to production like this, and he wants me to help!

Am I overreacting, or is this completely insane? Because honestly, I’m beyond pissed right now.

840 Upvotes

595 comments sorted by

View all comments

Show parent comments

331

u/maria_la_guerta Nov 04 '25 edited Nov 04 '25

You're not going to drive any alignment being a hothead. You may disagree with them, but listen to their reasoning with respect and empathy, and then present your own, based strictly on business value.

I don't know how true these sources are, but this link claims that

In Airbnb, they found out that 38% (!) of bugs could have been prevented by using TypeScript

This is the type of objective reasoning you need to be leaning on. Do this math for your company and let the numbers speak for themselves.

35

u/_Happy_Camper Nov 04 '25

Was going to say similar but this comment is spot on.

16

u/Pantzzzzless Nov 04 '25

You're not going to drive any alignment being a hothead. You may disagree with them, but listen to their reasoning with respect and empathy, and then present your own, based strictly on business value.

This is one of the skills I never considered being a thing, and ended up having to learn quickly to salvage a few cross-domain relationships.

But at the same time, there are definitely some circumstances where you need to be pretty harsh to break people out of their siloed mindsets.

12

u/maria_la_guerta Nov 04 '25

I'm not saying don't defend your opinions. I am saying that if you can't make your point without emotions then you don't have a strong enough point, or it won't get taken seriously even if you do.

4

u/cbehopkins Nov 06 '25

Yeah watch out for next week when he argues that removing unit tests will save time and reduce failures.

The ability to argue calmly and justify against business value is one of the most important skills an engineer can have

3

u/kokanee-fish Nov 05 '25

Yeah the only thing I would add is that TypeScript doesn't usually make writing code easier/faster, but it makes reading code dramatically easier and faster. On very small teams that don't plan to grow, I'm fine with vanilla, but if I expect people will ever need to ramp up on the codebase without context, I go all-in on TS.

I used to be all about functional programming and dynamic typing, but I was just being stubborn and lazy. There are few forms of modern complexity that provide benefits as tangible as the IDE hints, shortcuts, and realtime type errors that TS unlocks.

2

u/el_diego Nov 04 '25

I wonder if the new employee did any of that to justify such a sweeping change

1

u/chugItTwice Nov 05 '25

This is a great example. Sorry OP, you should be pissed. It's a stupid move - especially for any kind of moderately large code base. Find some more examples like this and present them... I'm sure it won't be too difficult.

0

u/Downtown_Category163 Nov 06 '25

Sometimes being pissed at a dumb idea is perfectly justified though

2

u/maria_la_guerta Nov 06 '25

I'm not telling you how to feel, I'm telling you how to act.

0

u/Downtown_Category163 Nov 06 '25

Why's it my problem? He's the one with the dumb badly-thought-out idea that will make life worse, why do I have to do the emotional labour of not calling it dumb?