Ignore “cannot find module” error on typescript
问题 Can the Typescript compiler ignore the cannot find module 'x' error on import expressions such as: //How to tell the compiler that this module does exists import sql = require('sql'); There are multiple npm libraries such as node sql that doesn't have existing typings Is there a way to tell the compiler to ignore this error other than creating a new definition file with the declare module x ... ? 回答1: If you just want to bypass the compiler, you can create a .d.ts file for that module, for