question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Incorrect Output type

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:14

github_iconTop GitHub Comments

6reactions
EliotSlevincommented, Mar 18, 2021

Still getting this on a site I created fresh just last week

2reactions
Twentyone8commented, Sep 9, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error in Output Type - SAP Community
Dear All, I am facing a problem with output type for billing. The output is defined and assigned for the more than one...
Read more >
Incorrect output troubleshooting table - IBM
This topic describes incorrect output from RACF®. Generally, incorrect output can be missing records, duplicate records, incorrect values, format errors, ...
Read more >
"The output type is incorrect." is mentioned as error in Inventor ...
Issue: "The output type is incorrect." is mentioned as error in Task Scheduler Log file, when importing Step files. Example:
Read more >
MLService prediction call Failed, Invalid output data for Output ...
Hi, Could you please help me to resolve this issue? Error: MLService prediction call Failed { “code”: “BadRequest”, “message”: “Invalid ...
Read more >
Python, Error or incorrect output in function sum over lists of lists
Receiving errors when creating a function to sum a values in a List of Lists. Example: Seeking to generate this type of output...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found