Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

231
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda