Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

213
Vistas
Should we build typescript into js when uploading to server?

We are always using nodejs and we write code using vanilla JavaScript (.js extension). It's working fine, but currently we decided to create nodejs app using typescript. Unfortunately, we encounter many errors in building it (ts -> js). It is require .js code to run in the server? or just upload typescript files then run it in server using ts-node?

Thanks for your feedback.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Unfortunately, we encounter many errors in building it (ts -> js).

If they're errors in the code (TypeScript-related or otherwise), you need to resolve those before trying to use it in production.

It is require .js code to run in the server?

Node.js is a JavaScript runtime, it doesn't understand TypeScript.

You can:

  • Compile your TypeScript to JavaScript before deploying; or
  • Use ts-node or similar to compile it just-in-time; or
  • Use a different runtime, like Deno which handles TypeScript directly (basically by compiling just-in-time).

Note that when using one of the just-in-time options, it's really important to ensure that the code compiles cleanly by compiling it during development and staging. Your production environment shouldn't be the first place a TypeScript compilation error shows up.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda