在尝试使用@types/redux-form 时,我不断收到来自Field.d.ts的打字稿错误,输入来自 react 的ChangeEvent不是导出成员。
ERROR in c:\path-to-code\node_modules\@types\redux-form\lib\Field.d.ts
(4,5): error TS2305: Module '"c:/path-to-code/node_modules/@types/react/index"' has no exported member 'ChangeEvent'.
我被锁定在使用react 15.3.2和tsc 2.2.1并且我找不到任何其他与 react 或 redux-form 相关的 ChangeEvent 提及。
@LKay
这看起来是由过时的 @types/react 实例引起的
@jamespero过时的实例是什么? 我遇到了同样的错误
很好,GitHub 将@types/react
解析为团队提及: <gh:team-mention org="types" team="react" />
。
最有用的评论
@jamespero过时的实例是什么? 我遇到了同样的错误