以下是完整的错误集:
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,我仍然收到此错误。
答案 0 :(得分:0)
此错误已在最新版本的apollo中修复。
将apollo-client
升级为0.10.0
将react-apollo
升级为0.13.1
(刚刚发布)