首页 > 解决方案 > apollo-angular error // 角度项目无法编译

问题描述

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

ERROR in node_modules/apollo-angular/Apollo.d.ts(1,100): error TS2305: Module '"/usr/app/node_modules/apollo-client/index"' has no exported member 'ApolloClientOptions'.
node_modules/apollo-angular/Apollo.d.ts(8,27): error TS2315: Type 'ApolloClient' is not generic.
node_modules/apollo-angular/Apollo.d.ts(13,18): error TS2315: Type 'ApolloClient' is not generic.
node_modules/apollo-angular/Apollo.d.ts(14,23): error TS2315: Type 'ApolloClient' is not generic.

我尝试卸载然后重新安装模块,但我得到了同样的错误......谁能告诉我这些错误的确切含义?

我正在使用这些版本

阿波罗角:1.0.1,

节点:v8.12.0

标签: node.jsangularnode-modulesapolloapollo-angular

解决方案


推荐阅读