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

268
Visualizações
How to disable error highlighting typescript code in vscode

Good afternoon! I ran into such a problem that vscode began to highlight the correct code in red. When using the union operator '??' or when using optional chaining '?.' The code builds normally, there are no errors in the console, only vscode highlights the code, when hovering, an error pops up: '[ts] Expected expression'

This problem arose after I switched to a new computer, on the old computer this problem did not occur with the same code. The same extensions are installed on the new computer, the only difference with the old computer is the version of vscode itself and the version of the installed extensions.

For now, I've temporarily disabled typescript code checking in the vscode settings with "typescript.validate.enable": false,

but this approach seems wrong to me, because I want the code to be checked, but at the same time not highlighted in red using the union operator '??' or when using optional chaining '?.'

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Make sure you're using the correct TypeScript version in VSCode. Press Ctrl + Shift + P, then type and select "TypeScript: Select TypeScript version..." and select the latest version.

about 4 years ago · Juan Pablo Isaza Relatório

0

Does VS Code have tslint, if so then disable it

about 4 years ago · Juan Pablo Isaza Relatório
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