Apollo缓存内存和Apollo客户端错误// Angular Project无法编译

时间:2018-10-10 11:23:33

标签: node.js angular node-modules

尝试以角度编译项目时,出现以下错误

 ERROR in node_modules/apollo-cache-inmemory/lib/inMemoryCache.d.ts(25,35): error TS2314: Generic type 'Query<TVariables>' requires 1 type argument(s).
    node_modules/apollo-cache-inmemory/lib/inMemoryCache.d.ts(26,41): error TS2314: Generic type 'Fragment<TVariables>' requires 1 type argument(s).
    node_modules/apollo-cache-inmemory/lib/inMemoryCache.d.ts(27,25): error TS2314: Generic type 'WriteQueryOptions<TData, TVariables>' requires 2 type argument(s).
    node_modules/apollo-cache-inmemory/lib/inMemoryCache.d.ts(28,28): error TS2314: Generic type 'WriteFragmentOptions<TData, TVariables>' requires 2 type argument(s).
    node_modules/apollo-client/ApolloClient.d.ts(42,27): error TS2314: Generic type 'Query<TVariables>' requires 1 type argument(s).
    node_modules/apollo-client/ApolloClient.d.ts(43,30): error TS2314: Generic type 'Fragment<TVariables>' requires 1 type argument(s).
    node_modules/apollo-client/ApolloClient.d.ts(44,25): error TS2314: Generic type 'WriteQueryOptions<TData, TVariables>' requires 2 type argument(s).
    node_modules/apollo-client/ApolloClient.d.ts(45,28): error TS2314: Generic type 'WriteFragmentOptions<TData, TVariables>' requires 2 type argument(s).
    node_modules/apollo-client/ApolloClient.d.ts(46,24): error TS2314: Generic type 'WriteDataOptions<TData>' requires 1 type argument(s).

我尝试卸载然后重新安装模块,但是我遇到了同样的错误……有人可以告诉我这些错误的确切含义吗?

我正在使用这些版本

apollo客户端:2.2.5,

apollo-cache-memory:1.1.9

节点:v8.12.0

0 个答案:

没有答案