-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[0.11.x] Error: Schema must be an instance of GraphQLSchema. Also ensure that there are not multiple versions of GraphQL installed in your node_modules directory. #1016
Comments
The problem almost certainly lies in the place pointed at by the error message:
Try doing a |
pls refer #956 it seems you got a dependency who had installed a graphql dependency under its own |
Hi @wincent, when I run the command you suggested, I do see multiple instances of
Do you have any suggestions on how to resolve this? I.e., should I open up a separate issue on |
the correct so in fact,you may need
have a try |
I've tried to remove
I guess this is because I don't have "apollo-client": "^1.9.1",
"apollo-upload-server": "^2.0.3",
"body-parser": "^1.17.2",
"express": "^4.15.4",
"graphql": "0.10.5",
"graphql-date": "^1.0.3",
"graphql-loader": "^1.2.1",
"graphql-log": "^0.1.3",
"graphql-redis-subscriptions": "^1.2.0",
"graphql-server-express": "1.1.2",
"graphql-subscriptions": "^0.4.4",
"graphql-tools": "^1.2.1",
"graphql-type-json": "^0.1.4",
"meteor-apollo-accounts": "^2.0.3", |
Here is the observed behavior by just upgrading this dependency: with 0.10.5 07:04:25 (fixes-v3) ~/x/app$ find node_modules -name graphql
node_modules/@types/graphql
node_modules/graphql with 0.11.0 07:04:55 (fixes-v3) ~/x/app$ find node_modules -name graphql
node_modules/@types/graphql
node_modules/apollo-client/node_modules/graphql
node_modules/apollo-link-core/node_modules/graphql
node_modules/express-graphql/node_modules/graphql
node_modules/graphql
node_modules/graphql-resolve-batch/node_modules/graphql
node_modules/graphql-tag/node_modules/graphql |
Sounds like we end up in a situation close to was we had at the beginning of the React boom. I guess we should encourage the community to move graphql to a peer dependency. |
One thing to note: we will be cutting a release today, and then updating the express-graphql package to depend on that. |
Latest versions are now graphql v0.11.2 and express-graphql v0.6.11. |
Hi, I have the same error in graphiql
I tried schema.js
package.json
server.js
Any idea what is wrong in it? |
I get this error when querying my GraphQL server after upgrading from
0.10.5
to0.11.1
:My setup works great on
0.10.5
, and I don't see any related breaking changes in the0.11.x
release notes. Any ideas on where to start troubleshooting this?The text was updated successfully, but these errors were encountered: