Force TypeScript Compiler to Ignore Errors

Friday Mar 6th 2020 by Srinath MS
Article Image

Language: Web, Expertise: Intermediate - See how to force the compiler to ignore errors in TypeScript.

Use the "@ts-ignore" comment before the code and the compiler will ignore errors.

// @ts-ignore
import mathUnit from 'mathjs/lib/type/unit'
Mobile Site | Full Site