我正在尝试在typescript中设置一个 react-admin 应用程序,但我不太清楚如何导入 react-admin。它给了我(简单的)错误说
"Could not find a declaration file for module 'react-admin'.
'.../node_modules/react-admin/lib/index.js' implicitly has an 'any' type.
Try `npm install @types/react-admin` if it exists or add a new declaration (.d.ts)
file containing `declare module 'react-admin';`"
@types/react-admin 不是一个有效的包,但我在 github 或 stackoverflow 上找不到其他人抱怨这个。我错过了什么吗?据我所知,大多数东西已经迁移到typescript。
编辑:发现这实际上引用了 ts 的问题。然而,自从他们说“这需要几个月”已经过去了 5 个月