Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

211
Views
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 answers
Answer question

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 Report

0

just put

// @ts-ignore 

in the line you want to disable type checking

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!