I have generally move away from JS/TS default. I even avoid react unless it is absolutely necessary. I am moved to more simpler choices when picking tech stacks. I go for the old & tested rather than the fancy, new & shiny choice.
This move has allowed me to maintain a project for long times while still maintaining my peace of mind.
I went with JS/TS at my last place. It worked well. I wrote up some thoughts.
https://zoenolan.org/2022/09/language-choices/
Today, I'd add having some sort of a plan on how to deal with npm attacks but wouldn't see that as a deal breaker.
I have generally move away from JS/TS default. I even avoid react unless it is absolutely necessary. I am moved to more simpler choices when picking tech stacks. I go for the old & tested rather than the fancy, new & shiny choice.
This move has allowed me to maintain a project for long times while still maintaining my peace of mind.
It depends on the project, architect and the resource pool in the company.
You can go wrong with any choice of tools.
What would be safest option nowadays?
Safest would be the tech you already know well.