Does anyone know the correct fix for `Duplicate "g...
# orm-help
t
Does anyone know the correct fix for
Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior.
I have tried following the steps here:
Copy code
yarn cache clean
yarn upgrade-interactive --latest
rm -rf node_modules
npm install
yarn run dev
as well as added the following to
package.json
:
Copy code
"resolutions": {
    "graphql": "^15.0.0"
  },
but still get the following:
Copy code
Error: Cannot use GraphQLNonNull "[Item]!" 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.
I ended up having to remove and re-install
prisma-binding
s
Try removing GraphQL and running yarn install again
👍 1