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

359
Visualizações
How do I prevent Vetur and TypeScript from both showing typescript warnings in VSCode?

I'm working on a Vue2 project that uses TypeScript. I'm using VSCode with the Vetur and TypeScript extensions installed.

Whenever a TypeScript warning occurs, the VSCode overlay shows the identical warning being reported by both TypeScript and Vetur.

warnings

Additionally, any intellisense menus show the options twice.

intellisense

I'd like to keep both extensions installed. How can I get them to play nice with each other and only display the warnings once?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

It may be because both extensions are using different versions of TS. Vetur has a setting to use the workspace version of TS (simply from node_modules) and I bet TS extension for VS will have something similar.

Also note that Vetur is no longer officially recommended tool to use with Vue+TS but Volar is - from my personal experience, it is really better and more actively develop (even have support for script setup with no perfect but pretty decent auto-conversion between Options API/Composition API and script setup)

While Volar says it is designed for Vue 3, it still works fine with Vue 2 and the composition API. So it should be safe to disable Vetur in VSCode if you have Volar enabled.

over 4 years ago · Santiago Trujillo 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