Upon upgrading to v1.9.0 I get the following errors compiling:
```[at-loader] Checking finished with 63 errors
[at-loader] ./node_modules/apollo-client/core/types.d.ts:17:45
TS1005: ',' expected.
[at-loader] ./node_modules/apollo-client/core/types.d.ts:17:47
TS1005: '>' expected.
[at-loader] ./node_modules/apollo-client/core/types.d.ts:19:2
TS1005: ';' expected.
[at-loader] ./node_modules/apollo-client/core/types.d.ts:19:4
TS1109: Expression expected.
[at-loader] ./node_modules/apollo-client/core/types.d.ts:20:10
TS1109: Expression expected.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:47:36
TS1005: ',' expected.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:47:38
TS1005: '>' expected.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:49:2
TS1109: Expression expected.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:50:27
TS1005: ',' expected.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:51:23
TS1005: ',' expected.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:52:43
TS1005: ',' expected.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:53:48
TS1005: '(' expected.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:54:51
TS1005: ',' expected.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:55:34
TS1005: '(' expected.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:57:41
TS1005: ',' expected.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:57:43
TS1005: '>' expected.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:59:2
TS1005: ';' expected.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:59:4
TS1109: Expression expected.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:59:74
TS1109: Expression expected.
[at-loader] ./node_modules/apollo-client/data/mutationResults.d.ts:8:48
TS1005: ',' expected.
[at-loader] ./node_modules/apollo-client/data/mutationResults.d.ts:8:50
TS1005: '>' expected.
[at-loader] ./node_modules/apollo-client/data/mutationResults.d.ts:10:2
TS1005: ';' expected.
[at-loader] ./node_modules/apollo-client/data/mutationResults.d.ts:10:4
TS1109: Expression expected.
[at-loader] ./node_modules/apollo-client/data/mutationResults.d.ts:11:15
TS1005: ',' expected.
[at-loader] ./node_modules/apollo-client/data/mutationResults.d.ts:11:24
TS1005: ';' expected.
[at-loader] ./node_modules/apollo-client/data/mutationResults.d.ts:11:49
TS1005: '(' expected.
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:14:35
TS1005: ',' expected.
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:14:43
TS1005: ',' expected.
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:14:56
TS1005: '(' expected.
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:14:83
TS1109: Expression expected.
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:15:19
TS1005: ',' expected.
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:16:16
TS1005: ',' expected.
[at-loader] ./node_modules/zen-observable-ts/lib/zenObservable.d.ts:17:14
TS1005: ',' expected.
[at-loader] ./app/util/query.ts:77:22
TS2314: Generic type 'MutationOptions
[at-loader] ./app/util/query.ts:86:24
TS2314: Generic type 'MutationOptions
[at-loader] ./node_modules/apollo-client/core/types.d.ts:20:5
TS2304: Cannot find name 'data'.
[at-loader] ./node_modules/apollo-client/core/types.d.ts:20:12
TS2304: Cannot find name 'T'.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:50:15
TS2693: 'DocumentNode' only refers to a type, but is being used as a value here.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:52:26
TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:52:35
TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:53:21
TS2693: 'MutationQueryReducersMap' only refers to a type, but is being used as a value here.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:54:22
TS2304: Cannot find name 'string'.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:54:33
TS2693: 'PureQueryOptions' only refers to a type, but is being used as a value here.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:55:14
TS2693: 'MutationUpdaterFn' only refers to a type, but is being used as a value here.
[at-loader] ./node_modules/apollo-client/core/watchQueryOptions.d.ts:59:63
TS2304: Cannot find name 'T'.
[at-loader] ./node_modules/apollo-client/data/mutationResults.d.ts:11:6
TS2304: Cannot find name 'queryName'.
[at-loader] ./node_modules/apollo-client/data/mutationResults.d.ts:11:17
TS2304: Cannot find name 'string'.
[at-loader] ./node_modules/apollo-client/data/mutationResults.d.ts:11:26
TS2693: 'MutationQueryReducer' only refers to a type, but is being used as a value here.
[at-loader] ./node_modules/apollo-link-core/lib/link.d.ts:10:76
TS2314: Generic type 'FetchResult' requires 2 type argument(s).
[at-loader] ./node_modules/apollo-link-core/lib/link.d.ts:12:90
TS2314: Generic type 'FetchResult' requires 2 type argument(s).
[at-loader] ./node_modules/apollo-link-core/lib/link.d.ts:16:66
TS2314: Generic type 'FetchResult' requires 2 type argument(s).
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:14:44
TS2368: Type parameter name cannot be 'string'
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:14:52
TS2368: Type parameter name cannot be 'any'
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:14:58
TS2304: Cannot find name 'E'.
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:14:62
TS2693: 'Record' only refers to a type, but is being used as a value here.
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:14:69
TS2304: Cannot find name 'string'.
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:14:77
TS2304: Cannot find name 'any'.
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:14:85
TS2693: 'ExecutionResult' only refers to a type, but is being used as a value here.
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:14:103
TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:15:18
TS2304: Cannot find name 'E'.
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:16:15
TS2304: Cannot find name 'C'.
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:18:69
TS2314: Generic type 'FetchResult' requires 2 type argument(s).
[at-loader] ./node_modules/apollo-link-core/lib/types.d.ts:19:95
TS2314: Generic type 'FetchResult' requires 2 type argument(s).
```
versions up to 1.8.0 work fine.
node version: 8.4.0
npm version: 5.3.0
using [email protected]
This issue has been automatically marked as stale becuase it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Apollo Client!
I have the same issue, have you already know how to fix it?
Same issue here.
Downgrading this packages will fix the problem.
"apollo-client": "^1.0.1",
"graphql-tag": "^1.3.1",
I use angular-starter
and apollo-angular + apollo-client
found same result
Same issue
with the mean.io stack
Guys I've spent literaly days fighting this issue and also errors conected to AsyncIterator interface used in subscriptions.
I was using latest versions of apollo libs:
"apollo-cache-inmemory": "^0.2.0-beta.6",
"apollo-client": "^2.0.0-rc.4",
"apollo-link": "^0.8.0",
"apollo-link-batch-http": "^0.4.0",
"apollo-link-http": "^0.8.0",
"apollo-link-ws": "^0.6.0",
"subscriptions-transport-ws": "~0.9.1",
What helped:
"lib": [
"esnext.asynciterable",
"es2016",
"dom"
]
Important upgrades to make it work in my case:
"@angular/cli": "^1.4.9"
"typescript": "~2.3.3"
@shipiak
It works for me; thanks!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Apollo Client!
This issue has been automatically closed because it has not had recent activity after being marked as stale. If you belive this issue is still a problem or should be reopened, please reopen it! Thank you for your contributions to Apollo Client!
Most helpful comment
Guys I've spent literaly days fighting this issue and also errors conected to AsyncIterator interface used in subscriptions.
I was using latest versions of apollo libs:
What helped:
Important upgrades to make it work in my case:
"@angular/cli": "^1.4.9""typescript": "~2.3.3"