Apollo-cache-inmemory и apollo-client error // Angular Project не скомпилируется - PullRequest
0 голосов
/ 10 октября 2018

При попытке скомпилировать проект в angular я получаю следующие ошибки

 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-client: 2.2.5,

apollo-cache-inmemory: 1.1.9

узел: v8.12.0

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...