Apollo-client-devtools: Uncaught Error: Schema must be an instance of GraphQLSchema.

Created on 12 Jul 2017  路  6Comments  路  Source: apollographql/apollo-client-devtools

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.

All 6 comments

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: https://github.com/graphql/graphiql/issues/58
Thanks!

Let me create a sample repo

@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
  } 
}

devtools version from web store: 2.0.1

@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.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rogue-agent picture rogue-agent  路  3Comments

joesankey picture joesankey  路  5Comments

kissu picture kissu  路  4Comments

mvestergaard picture mvestergaard  路  6Comments

raix picture raix  路  7Comments