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

Uncaught Error: Schema must be an instance of GraphQLSchema. #60

Closed
backjo opened this issue Jul 12, 2017 · 6 comments
Closed

Uncaught Error: Schema must be an instance of GraphQLSchema. #60

backjo opened this issue Jul 12, 2017 · 6 comments

Comments

@backjo
Copy link

backjo commented Jul 12, 2017

Hi,

I'm getting the following error when using the graphiql tool inside of the devtools (graphiql works fine outside of apollo devtools for 0.11.2)
latest react-apollo (1.4.3) and apollo-client(1.8.0)

Uncaught Error: Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory.

@ramyanaga
Copy link
Contributor

Do you know how I can replicate this error on my computer, or can you provide us the repo you're developing on so we can further address this? In the meanwhile, apollo-client had similar issues 2 years ago, and this link might help: graphql/graphiql#58
Thanks!

@backjo
Copy link
Author

backjo commented Jul 12, 2017

Let me create a sample repo

@backjo
Copy link
Author

backjo commented Jul 12, 2017

@ramyanaga don't even need a sample app - if you open apollo client devtool on www.githunt.com, you will see similar issue when you try to query feed items (autocomplete will not work, and if you open console for devtools, you will see err messages)

query x {
  feed(type:HOT) {
    id
    repo
  } 
}

@backjo
Copy link
Author

backjo commented Jul 12, 2017

devtools version from web store: 2.0.1

@ramyanaga
Copy link
Contributor

@backjo Looks like this error is being caused by a graphiql update. I'm currently trying to find a version of graphiql in which both intellisense and cmd+click functionality work.

@justinanastos
Copy link
Contributor

This appears to be working now! Please re-open the issue if it happens again. Thank you @backjo !

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

3 participants