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

160
Views
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
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!