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

222
Vistas
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
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