我正在尝试根据文档将graphql服务器添加到nestjs,但是我收到此错误:
Nest can't resolve dependencies of the GraphQLModule (HttpAdapterHost, GqlModuleOptions, GraphQLFactory, GraphQLTypesLoader, ?). Please make sure that the argument at index [4] is available in the GraphQLModule context. +19ms
错误:Nest无法解析GraphQLModule的依赖项(HttpAdapterHost,GqlModuleOptions,GraphQLFactory,GraphQLTypesLoader 、?)。请确保在GraphQLModule上下文中索引[4]处的参数可用。
答案 0 :(得分:2)
检查完所有依赖项后,我看到该命令为我安装了@ nestjs / graphql的最新版本,而我的@ nestjs / core不兼容,我需要更新我的nestjs。非常感谢