parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

GraphQL Error

Open behnik opened this issue 3 years ago • 6 comments
trafficstars

Error: Cannot use GraphQLObjectType "RoleConnection" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules directory. If different versions of "graphql" are the dependencies of other relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and spurious results. at instanceOf (/app/node_modules/parse-server/node_modules/graphql/jsutils/instanceOf.js:35:13) at isObjectType (/app/node_modules/parse-server/node_modules/graphql/type/definition.js:122:34) at isType (/app/node_modules/parse-server/node_modules/graphql/type/definition.js:92:32) at isNullableType (/app/node_modules/parse-server/node_modules/graphql/type/definition.js:422:10) at assertNullableType (/app/node_modules/parse-server/node_modules/graphql/type/definition.js:426:8) at new GraphQLNonNull (/app/node_modules/parse-server/node_modules/graphql/type/definition.js:379:19) at Object.load (/app/node_modules/parse-server/lib/GraphQL/loaders/parseClassQueries.js:109:13) at /app/node_modules/parse-server/lib/GraphQL/ParseGraphQLSchema.js:109:25 at Array.forEach () at ParseGraphQLSchema.load (/app/node_modules/parse-server/lib/GraphQL/ParseGraphQLSchema.js:107:71)

behnik avatar Feb 20 '22 07:02 behnik