如何在Apollo Client中修复“无法找到名称'IResponse'”

时间:2017-03-02 01:28:55

标签: node.js typescript apollo-client

以下是完整的错误集:

ERROR in [at-loader] node_modules/apollo-client/transport/afterware.d.ts:3:15         
    TS2304: Cannot find name 'IResponse'.                                             
ERROR in [at-loader] node_modules/apollo-client/transport/networkInterface.d.ts:44:15 
    TS2304: Cannot find name 'IResponse'.                                             
ERROR in [at-loader] node_modules/apollo-client/transport/networkInterface.d.ts:56:77 
    TS2304: Cannot find name 'IResponse'.

我可以通过修改这两个Apollo客户端文件来解决所有这些错误,但这不是一个可持续的解决方案。

我按照此主题的推荐安装了@types/isomorphic-fetch@types/node npm https://github.com/apollographql/apollo-client/issues/207,我仍然收到此错误。

1 个答案:

答案 0 :(得分:0)

此错误已在最新版本的apollo中修复。

apollo-client升级为0.10.0

react-apollo升级为0.13.1(刚刚发布)