Two different types with this name exist, but they are unrelated" emitted when s 微笑618 2022-04-28 375 阅读1分钟 错误: 旧项目升级,typescript 有大量的这个报错 Two different types with this name exist, but they are unrelated" emitted when same 解决办法 属于临时的解决方案,后续还是需要逐步优化项目中不合理的类型定义的,但是这个方法对于项目重构迁移,会非常有用,可以极大的减少不必要的报错。 在tsconfig.json中设置strict=false。