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

132
Visualizações
Why the type errors are blocking the UI

I started a new create react app with typescript and for any type error, the ui is covered by this black screen showing errors, i want to see type errors only in terminal

Compiled with problems:X

ERROR in src/App.tsx:10:45

TS2322: Type 'boolean' is not assignable to type 'string'. 8 | 9 |

10 | <Route path="/product" element={hi}> | ^^ 11 | 12 | </> 13 | );

enter image description here

Any way to fix this?

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

0

Assuming you are using create-react-app,

1- If you want to ignore for whole project. Create a ".env" file in the root of the project and put inside it these settings.

TSC_COMPILE_ON_ERROR=true
ESLINT_NO_DEV_ERRORS=true

2-If you want to ignore just that line. Just above the line put this comment.

// @ts-ignore
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