Hey guys! Does anyone know how to resolve this iss...
# prisma-whats-new
m
Hey guys! Does anyone know how to resolve this issue?
Copy code
Error: Cannot use GraphQLNonNull "User!" 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.
Thanks!
n
make sure that your entire dependency tree only contains one version of
graphql
.
m
Sorry for my nooby question Nilan, but there’s no collision here right?
Copy code
"dependencies": {
    "bcryptjs": "2.4.3",
    "graphql-yoga": "1.3.2",
    "jsonwebtoken": "8.1.1",
    "prisma-binding": "1.5.11",
    "shortid": "^2.2.8"
  },
  "devDependencies": {
    "@types/bcryptjs": "2.4.1",
    "dotenv-cli": "1.4.0",
    "graphql-cli": "2.14.1",
    "nodemon": "1.15.0",
    "npm-run-all": "4.1.2",
    "prisma": "1.2.3",
    "rimraf": "2.6.2",
    "ts-node": "4.1.0",
    "typescript": "2.7.2"
  }
n
well, clearly there is πŸ™‚
graphql-yoga
,
prisma-binding
,
prisma
and
graphql-cli
m
yeah, I noticed differences in versions hehe
oh my god @nilan
do you remember the problem I had with image upload?
this was the issue!!
πŸŽ‰ 1
moral of the story: Always check your dependencies versions πŸ˜›
p
Oh great πŸ˜› same issue here!
πŸŽ‰ 2
m
cool!