8
tsconfig.json 如何配置忽略某个文件夹下所有.ts 文件的报错?
source link: https://www.v2ex.com/t/887695
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
引用别人的代码,例如放在 ./imported 文件夹下,里面有几百个.ts 文件
yarn start 运行没事,
yarn build 时大量报错,都发生在引入的这些 .ts 文件,错误信息包括把 object 赋值给 string 等
由于错误文件太多,想看看有没有通过配置的方式,直接忽略这个文件夹下所有.ts 文件的报错
yarn start 运行没事,
yarn build 时大量报错,都发生在引入的这些 .ts 文件,错误信息包括把 object 赋值给 string 等
由于错误文件太多,想看看有没有通过配置的方式,直接忽略这个文件夹下所有.ts 文件的报错
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK