小编Dee*_*yan的帖子

确保node_modules目录中只有一个“graphql”实例

在尝试使用 npm run schema:download 下载架构时,我收到以下错误。

\n
\n

my-app@0.1.0 架构:download\nnpx apollo 服务:download --endpoint=http://localhost:9000/graphql ./src/app/graphql-schema.json

\n
\n
\n

apollo已弃用:此命令将在下一个主要版本中从 CLI 中删除。新的 Apollo Rover CLI 中提供了替换功能: https: //go.apollo.dev/t/migration

\n

\xe2\x9c\x94 正在加载 Apollo 项目\n\xe2\x9c\x96 将架构保存到 ./src/app/graphql-schema.json\n\xe2\x86\x92 虚假结果。\n错误:无法使用 GraphQLSchema "{ __validationErrors:未定义,扩展:未定义,astNode:\ n未定义,扩展ASTNodes:未定义,__allowedLegacyNames:[],_queryType:查询,_mutationType:\nMutation,_subscriptionType:null,_directives:[@include,@skip,@deprecated,@specifiedBy] ,\n_typeMap: { 查询: 查询, 汽车: 汽车, 字符串: 字符串, 浮点: 浮点, 突变: 突变, NewCarInput:\nNewCarInput, Int: Int, __Schema: __Schema, __Type: __Type, __TypeKind: __TypeKind, Boolean: Boolean, \n__Field: __Field, __InputValue: __InputValue, __EnumValue: __EnumValue, __Directive: __Directive,\n__DirectiveLocation: __DirectiveLocation }, _possibleTypeMap: {}, _implementations: {} }" 来自另一个\n模块或领域。

\n
Ensure that …
Run Code Online (Sandbox Code Playgroud)

reactjs graphql apollo-client

6
推荐指数
1
解决办法
5762
查看次数

标签 统计

apollo-client ×1

graphql ×1

reactjs ×1