You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There can be only one version of the graphql in total in the project or everything will break down becuase instanceof checks will not work. This is manifested by an error message like this during install:
| Error: 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.
Since each package cannot have their own version of the graphql package, they all have to agree on a single version. If graphql-code-generator could be updated to allow "graphql@^0.11.0 || ^0.12.0 || ^0.13.0" it would make it easier to use together with other packages.
The text was updated successfully, but these errors were encountered:
I am using graphql-tools which tells me this:
So I need at least 0.11.0 of graphql. However graphql-code-generator tells me this:
There can be only one version of the graphql in total in the project or everything will break down becuase
instanceof
checks will not work. This is manifested by an error message like this during install:Since each package cannot have their own version of the graphql package, they all have to agree on a single version. If graphql-code-generator could be updated to allow "graphql@^0.11.0 || ^0.12.0 || ^0.13.0" it would make it easier to use together with other packages.
The text was updated successfully, but these errors were encountered: