【发布时间】:2021-12-03 10:33:45
【问题描述】:
(抱歉,如果这是重复的,我找不到任何处理现有 .jsx 文件的问答)
我一直在将我的应用程序迁移到 typescript,现在出现了以下错误:
Could not find a declaration file for module '../components/...'. '.../components/....js' implicitly has an 'any' type.ts(7016)
我宁愿现在不必检查整个应用程序并将所有内容转换为.tsx。我觉得在我的tsconfig 文件中将noImplicitAny 转换为false 会过分,因为我现在只想忽略导入问题。
有没有更明智的方法来解决这些错误?
【问题讨论】:
标签: javascript reactjs typescript module tsconfig