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

176
Vistas
Module not found error in TypeScript/JavaScript

I'm trying to import a function from a .js file into my .ts file. I'm getting error module not found. I've verified few properties in my ts.config file. They seem to be OK. like allowJs = True.

Note: .js file is present in different package & i've provided the correct path while importing.

Anyone faced this issue before? Or is there anything special that i need to take care of while importing a .js function into .ts file.

JSFile.js

module.exports = xyz => {

  const getJSFunction = async (
    param1,
    param2,
    param3,
    options = {}
  ) => {---Method Body---};

TSFile.ts

const abc = require('../../folder/JSFile');

Getting error module ../../folder/JSFile not found

Thanks in advance !!!

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