{"id":15857418,"url":"https://github.com/timmikeladze/graphql-version-error-example","last_synced_at":"2025-04-01T19:42:40.921Z","repository":{"id":74921385,"uuid":"125581930","full_name":"TimMikeladze/graphql-version-error-example","owner":"TimMikeladze","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-22T04:43:59.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T20:51:21.810Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TimMikeladze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-16T23:58:26.000Z","updated_at":"2024-12-25T11:58:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"7868b9f1-a414-4dec-a727-4f7e183bcae9","html_url":"https://github.com/TimMikeladze/graphql-version-error-example","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"7db92a78a4cd7790f5353d058f90519ef4d1a9cc"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimMikeladze%2Fgraphql-version-error-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimMikeladze%2Fgraphql-version-error-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimMikeladze%2Fgraphql-version-error-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimMikeladze%2Fgraphql-version-error-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimMikeladze","download_url":"https://codeload.github.com/TimMikeladze/graphql-version-error-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246703318,"owners_count":20820386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T20:22:58.516Z","updated_at":"2025-04-01T19:42:40.863Z","avatar_url":"https://github.com/TimMikeladze.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphql-version-error-example\n\nHow to reproduce error:\n\n```\ncd packages/directives\nyarn install\nyarn run compile\nyarn link\n\ncd ..\ncd graphql-server\nyarn install\nyarn link directives\nyarn start\n```\n\n\nError message:\n\n```\n/Users/tim/workspace/graphql-version-error-example/packages/graphql-server/node_modules/graphql/jsutils/instanceOf.js:15\n      throw new Error('Cannot use ' + className + ' \"' + value + '\" from another module or realm.\\n\\nEnsure that there is only one instance of \"graphql\" in the node_modules\\ndirectory. If different versions of \"graphql\" are the dependencies of other\\nrelied on modules, use \"resolutions\" to ensure only one version is installed.\\n\\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\\n\\nDuplicate \"graphql\" modules cannot be used at the same time since different\\nversions may have different capabilities and behavior. The data from one\\nversion used in the function from another could produce confusing and\\nspurious results.');\n            ^\nError: Cannot use GraphQLScalarType \"ID\" from another module or realm.\n\nEnsure that there is only one instance of \"graphql\" in the node_modules\ndirectory. If different versions of \"graphql\" are the dependencies of other\nrelied on modules, use \"resolutions\" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate \"graphql\" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.\n    at instanceOf (/Users/tim/workspace/graphql-version-error-example/packages/graphql-server/node_modules/graphql/jsutils/instanceOf.js:15:13)\n    at isScalarType (/Users/tim/workspace/graphql-version-error-example/packages/graphql-server/node_modules/graphql/type/definition.js:98:35)\n    at Object.isNamedType (/Users/tim/workspace/graphql-version-error-example/packages/graphql-server/node_modules/graphql/type/definition.js:343:10)\n    at healType (/Users/tim/workspace/graphql-version-error-example/packages/graphql-server/node_modules/graphql-tools/src/schemaVisitor.ts:406:16)\n    at /Users/tim/workspace/graphql-version-error-example/packages/graphql-server/node_modules/graphql-tools/src/schemaVisitor.ts:391:20\n    at /Users/tim/workspace/graphql-version-error-example/packages/graphql-server/node_modules/graphql-tools/src/schemaVisitor.ts:698:5\n    at Array.forEach (\u003canonymous\u003e)\n    at each (/Users/tim/workspace/graphql-version-error-example/packages/graphql-server/node_modules/graphql-tools/src/schemaVisitor.ts:697:30)\n    at healFields (/Users/tim/workspace/graphql-version-error-example/packages/graphql-server/node_modules/graphql-tools/src/schemaVisitor.ts:390:5)\n    at heal (/Users/tim/workspace/graphql-version-error-example/packages/graphql-server/node_modules/graphql-tools/src/schemaVisitor.ts:364:7)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimmikeladze%2Fgraphql-version-error-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimmikeladze%2Fgraphql-version-error-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimmikeladze%2Fgraphql-version-error-example/lists"}