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

210
Visualizações
How to disable typescript for failing my builds with nextjs?

Getting a bunch of type errors upon running yarn next build, for example:

Type error: Property 'href' does not exist on type '{ name: string; }'.

Which causes my build to fail. Is there a command i can put in my tsconfig to prevent this from happening?

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

0

From NextJS docs: https://nextjs.org/docs/api-reference/next.config.js/ignoring-typescript-errors

Just put this lines in next.config.js under the typescript section:

module.exports = {
  typescript: {
    // !! WARN !!
    // Dangerously allow production builds to successfully complete even if
    // your project has type errors.
    // !! WARN !!
    ignoreBuildErrors: true,
  },
}

about 4 years ago · Juan Pablo Isaza Relatório

0

just put

// @ts-ignore 

in the line you want to disable type checking

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