Error: Incorrect Output type
See original GitHub issueI have just started getting this error in the command line when I run gatsby develop
:
/Users/usrname/.config/yarn/global/node_modules/gatsby-recipes/node_modules/graphql-compose/lib/TypeMapper.js:294 throw new Error(
${typeName}.${fieldName} provided incorrect OutputType: ‘${(0, _misc.inspect)(composeType)}’);
^
Error: GatsbyPlugin.options provided incorrect OutputType: 'JSONObject'
at TypeMapper.convertOutputFieldConfig (/Users/usrname/.config/yarn/global/node_modules/gatsby-recipes/node_modules/graphql-compose/lib/TypeMapper.js:294:15)
at resolveOutputConfigAsThunk (/Users/usrname/.config/yarn/global/node_modules/gatsby-recipes/node_modules/graphql-compose/lib/utils/configAsThunk.js:19:41)
at ObjectTypeComposer.getFieldConfig (/Users/usrname/.config/yarn/global/node_modules/gatsby-recipes/node_modules/graphql-compose/lib/ObjectTypeComposer.js:300:58)
at /Users/usrname/.config/yarn/global/node_modules/gatsby-recipes/node_modules/graphql-compose/lib/utils/toInputObjectType.js:44:19
at Array.forEach (<anonymous>)
at toInputObjectType (/Users/usrname/.config/yarn/global/node_modules/gatsby-recipes/node_modules/graphql-compose/lib/utils/toInputObjectType.js:38:14)
at ObjectTypeComposer.getInputTypeComposer (/Users/usrname/.config/yarn/global/node_modules/gatsby-recipes/node_modules/graphql-compose/lib/ObjectTypeComposer.js:600:84)
at ObjectTypeComposer.getInputType (/Users/usrname/.config/yarn/global/node_modules/gatsby-recipes/node_modules/graphql-compose/lib/ObjectTypeComposer.js:586:17)
at /Users/usrname/.config/yarn/global/node_modules/gatsby-recipes/dist/create-types.js:86:71
at Array.map (<anonymous>)
Everything seems to work fine on the app, just getting the above error thrown.
Seems to be a global issue; I have three apps, all throwing same error on running gatsby develop
, and all apps seem to be working fine.
The gatsby versions in the apps are 2.23.12, 2.23.15 and 2.23.22.
Gatsby CLI is version: 2.12.67.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:14
Top GitHub Comments
Still getting this on a site I created fresh just last week
@insanity54 Already using yarn. Also upgraded to gatsby 2.24.5 and gatsby cli 2.12.93. Issue is still there, but the application works fine.