0
node_modules/graphql-tag/lib/index.d.ts(2,57): error TS1005: ',' expected.
node_modules/graphql-tag/lib/index.d.ts(2,63): error TS1005: ',' expected.

使用 angular 6 获取 graphql 的错误。我的 package.json 配置是:

"graphql": "0.11.3",
"graphql-tag": "2.12.1",
"apollo-angular": "1.5.0",
"apollo-angular-link-http": "1.11.0",
"apollo-cache-inmemory": "1.6.6",
"apollo-client": "2.3.4",
"@angular/cdk": "6.1.0",
"@angular/common": "6.1.2",
"@angular/compiler": "6.1.2",
"@angular/core": "6.1.2",
"apollo-link": "1.0.0",
"@angular/cli": "6.2.9",
"rxjs": "6.6.0",
"typescript": "2.9.2",

由于其他项目中有很多依赖项,我无法升级 angular、typescript、rxjs。请提出一些其他的选择。

4

0 回答 0