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

162
Vistas
Resolve module in typescript

I have kind of a problem. I have some typescript features and I try to compile then in js.

this is my tsconfig

{
  "compilerOptions": {
    "target": "esnext",
    "module": "es6",
    "esModuleInterop": true,
    "moduleResolution": "node",
    "forceConsistentCasingInFileNames": true,
    "strict": true,
    "skipLibCheck": true,
  },
  "include": ["src/**/*"],
}

In the end I run tsc and that work well, my js files are created. But when I run node myfile.js I get an error:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/salsa/test/analyst/amlf-analyst/src/pipes/thunes/p01'

and yes I know the .js is missing at the end of the path. But in my ts files I get an error If I specify the extension. So who can tsc compile the path with the js exension at the end.

Thanks a lot :)

about 4 years ago · Juan Pablo Isaza
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