这是完整的错误集:
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 Client 文件来修复所有这些错误,但这不是一个可持续的解决方案。
我已经安装了 npm@types/isomorphic-fetch
并@types/node
按照此线程的建议: https ://github.com/apollographql/apollo-client/issues/207并且我仍然收到此错误。