Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

177
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!