upgraded to 1.2 and now I get this: ``` Error: C...
# prisma-whats-new
w
upgraded to 1.2 and now I get this:
Copy code
Error: Cannot use GraphQLNonNull "[CartItem]!" 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.
Does npm have something similar to this?
a
I also had that problem a couple of days ago (when upgrading to
1.1.3
). A
rm -rf node_module && yarn
helped. Smells like a yarn problem to be honest.
w
im not using yarn
im using npm
a
Ah, sorry, me too.
So it might be npm specific then.
w
Maybe its a peer dep problem - I think i need to install graphql myself - trying that nw
a
A
rm -rf node_modules && npm i
did not help?
w
nope..
just complaining about peer deps which I clearly have - going to try yarn
nope..
v
w
thank you - gonna try that rollback
p
same problem ^ changing my package.json to
Copy code
"dependencies": {
    "aws-lambda": "^0.1.2",
    "aws-sdk": "2.192.0",
    "bcryptjs": "2.4.3",
    "graphql-yoga": "1.2.4",
    "jsonwebtoken": "8.1.1",
    "prisma-binding": "1.5.7"
  },
  "devDependencies": {
    "@types/bcryptjs": "2.4.1",
    "dotenv-cli": "1.4.0",
    "graphql-cli": "2.13.2",
    "nodemon": "1.14.12",
    "npm-run-all": "4.1.2",
    "prisma": "1.1.3",
    "rimraf": "2.6.2",
    "ts-node": "4.1.0",
    "typescript": "2.6.2"
  }
fixed it ( as mentioned in the above issue)
w
@patstrz thank you - that fixed it
p
Np!