Graphql-js: Query.node field type must be Output Type but got: Node.

Created on 18 Jul 2017  路  4Comments  路  Source: graphql/graphql-js

Hi, I tried to upgrade to version 0.10.4 and 0.10.5 but started getting the following errors in both versions. I don't see any problems in version 0.10.3. Any idea why?

Error: Query.node field type must be Output Type but got: Node.

Thanks

Most helpful comment

This is almost always due to multiple graphql installs in the node_modules directory.

I'm working on improving the error messages for these cases

All 4 comments

I have the same error , did you solve it ?
version graphql is : 0.9.6

check your yarn or npm lockfile & make sure there is only 1 version of graphql installed. isOutputType uses instanceOf instead of constructor.name, so if you have 2 versions of graphql installed, it likely grabbed the wrong version & will always return false. This could likely happen if you have a dependency that has graphql as a dependency instead of peerDependency.

This is almost always due to multiple graphql installs in the node_modules directory.

I'm working on improving the error messages for these cases

Was this page helpful?
0 / 5 - 0 ratings

Related issues

galki picture galki  路  3Comments

itajaja picture itajaja  路  3Comments

sudheerj picture sudheerj  路  3Comments

closertb picture closertb  路  3Comments

thomasdingemanse picture thomasdingemanse  路  4Comments