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

221
Views
No intellisense ("no definition found") for local JS dependencies even though they are fully typed

Problem: When importing from node_modules in mycode.js, some modules are fully typed and intellisense is available, while others don't get that luxury.

E.g., when I press F12 with cursor on any file in src, it works.

E.g., when I press F12 with cursor on 'lodash/minBy', it also takes me to the correct type definition file (which is in a global node_modules folder for some reason, even though, I have it installed locally).

But when I press F12 with cursor on 'sigma', it complains "No definition found", as illustrated in this screenshot: enter image description here

Naturally, lodash has full typing and intellisense support, while Sigma does not.

I already changed my jsconfig.json's include settings like so, but it did not help:

{
  "compilerOptions": {
    "module": "esnext",
    "target": "esnext",
    "checkJs": false,  /* Typecheck .js files. */
    "baseUrl": "./"
  },
  "include": [
    "src",
    "src/**/*",
    "../node_modules/sigma",
    "../node_modules/sigma/**/*",
    "../node_modules/graphology",
    "../node_modules/graphology/**/*"
  ]
}

The project is a mono-repo. My paths are:

root/some-package/jsconfig.json
root/some-package/src/mycode.js
root/node_modules/{sigma,graphology,etc.}
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!