wesbos
02/13/2018, 3:29 PMError: 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?andre
02/13/2018, 3:30 PM1.1.3
). A rm -rf node_module && yarn
helped. Smells like a yarn problem to be honest.wesbos
02/13/2018, 3:33 PMwesbos
02/13/2018, 3:33 PMandre
02/13/2018, 3:33 PMandre
02/13/2018, 3:33 PMwesbos
02/13/2018, 3:36 PMandre
02/13/2018, 3:36 PMrm -rf node_modules && npm i
did not help?wesbos
02/13/2018, 3:38 PMwesbos
02/13/2018, 3:42 PMwesbos
02/13/2018, 3:44 PMVictor Bianchi
02/13/2018, 3:52 PMwesbos
02/13/2018, 3:53 PMpatstrz
02/13/2018, 5:14 PM"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)wesbos
02/13/2018, 5:28 PMpatstrz
02/13/2018, 5:29 PM