Skip to content

Add graphql and graphql-tools as a peerDependency. #3

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

Open
ghost opened this issue Oct 18, 2017 · 0 comments
Open

Add graphql and graphql-tools as a peerDependency. #3

ghost opened this issue Oct 18, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 18, 2017

Currently I'm trying to use graphql-tools. But the graphql packaged in express-graphql and this package seems to conflict and this is the error I'm getting.

{
  "errors": [
    {
      "message": "Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory.",
      "stack": "Error: Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory.\n    at invariant (/home/pyros2097/Code/mine/cress/node_modules/graphql/jsutils/invariant.js:19:11)\n    at validate (/home/pyros2097/Code/mine/cress/node_modules/graphql/validation/validate.js:60:72)\n    at /home/pyros2097/Code/mine/cress/packages/cress-cli/node_modules/express-graphql/dist/index.js:140:52\n    at <anonymous>\n    at process._tickCallback (internal/process/next_tick.js:188:7)"
    }
  ]
}

So I think making this to peerDependency might help.

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

0 participants