Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pls update graphql dependency to latest v14 #63

Closed
eram opened this issue Sep 24, 2018 · 1 comment
Closed

pls update graphql dependency to latest v14 #63

eram opened this issue Sep 24, 2018 · 1 comment

Comments

@eram
Copy link

eram commented Sep 24, 2018

example error I get on the graphiql:

{
  "errors": [
    {
      "message": "Cannot use GraphQLSchema \"[object Object]\" from another module or realm.\n\nEnsure that there is only one instance of \"graphql\" in the node_modules\ndirectory. If different versions of \"graphql\" are the dependencies of other\nrelied on modules, use \"resolutions\" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate \"graphql\" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results."
    }
  ]
}
@eram eram closed this as completed Sep 26, 2018
@eram
Copy link
Author

eram commented Sep 26, 2018

I've solved the problem by writing a run-time patch that override the check:
https://github.com/eram/kiss-ts-starter/blob/master/server/src/graphqlApi/patch.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant