peter
02/17/2018, 7:54 PMError: Cannot use GraphQLSchema "[object Object]" 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 (/Users/peter/Sources/Repos/notes/packages/notes-prisma-local/node_modules/graphql/jsutils/instanceOf.js:17:13)
at isSchema (/Users/peter/Sources/Repos/notes/packages/notes-prisma-local/node_modules/graphql/type/schema.js:48:35)
at validateSchema (/Users/peter/Sources/Repos/notes/packages/notes-prisma-local/node_modules/graphql/type/validate.js:51:25)
at assertValidSchema (/Users/peter/Sources/Repos/notes/packages/notes-prisma-local/node_modules/graphql/type/validate.js:76:16)
at Object.validate (/Users/peter/Sources/Repos/notes/packages/notes-prisma-local/node_modules/graphql/validation/validate.js:61:35)
at doRunQuery (/Users/peter/Sources/Repos/notes/packages/notes-prisma-local/node_modules/apollo-server-core/src/runQuery.ts:143:30)
at /Users/peter/Sources/Repos/notes/packages/notes-prisma-local/node_modules/apollo-server-core/src/runQuery.ts:69:39
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
peter
02/17/2018, 7:56 PMAdam King
02/17/2018, 7:58 PM"resolutions": {
"graphql": "^0.13.0"
}
to my package.json.peter
02/17/2018, 7:59 PMgraphql
package or something elsenilan
02/17/2018, 8:00 PMgraphql
. I don't know exactly why, but graphql
doesn't like that at all 😛nilan
02/17/2018, 8:01 PMgraphql
, not the graphql-cli
Adam King
02/17/2018, 8:01 PMpeter
02/17/2018, 8:02 PMtypescript-advanced
projectpeter
02/17/2018, 8:03 PMresolutions
key is added to the package.json
of the prisma service is assume?Adam King
02/17/2018, 8:04 PMAdam King
02/17/2018, 8:05 PMpeter
02/17/2018, 8:05 PMAdam King
02/17/2018, 8:06 PMnilan
02/17/2018, 8:07 PMMoritz
02/18/2018, 4:39 PM