parse-community / parse-community/parse-server
GraphQL Error
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 21.4k
- Forks
- 4.8k
- Avg merge
- 7h 45m
- Merged PRs (30d)
- 11
Description
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)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the schema-loading failure involving RoleConnection, then inspect lib/GraphQL/loaders/parseClassQueries.js around line 109 and lib/GraphQL/ParseGraphQLSchema.js around lines 107-109. Compare the graphql modules involved and verify that schema loading completes without the duplicate-module or cross-realm error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, javascript, node.js
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100