You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
I've been trying to use versions feature to have docs available for the latest version from master branch, and latest docs for develop of unreleased features.
I'm getting the following error when I attempt to follow the docs: Unknown argument "gitRemote" on field "file" of type "Query"
ERROR #85901GRAPHQLTherewasanerrorinyourGraphQLquery:
Unknownargument"gitRemote"onfield"file"oftype"Query".File: node_modules/gatsby-theme-apollo-docs/gatsby-node.js:271:19ERROR #85923GRAPHQLTherewasanerrorinyourGraphQLquery:
Cannotqueryfield"fields"ontype"File".Ifyoudon't expect "fields" to exist on the type "File" it is most likely a typo.
However,ifyouexpect"fields"toexistthereareacoupleofsolutionstocommon problems:
-Ifyouaddedanewdatasourceand/orchangedsomethinginsidegatsby-node.js/gatsby-config.js,pleasetryarestartofyourdevelopmentserver-Thefieldmightbeaccessibleinanothersubfield,pleasetryyourqueryinGraphiQLandusetheGraphiQLexplorertoseewhichfieldsyoucanqueryandwhatshapetheyhave-Youwanttooptionallyuseyourfield"fields"andrightnowitisnotusedanywhere.ThereforeGatsbycan't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")
ItisrecommendedtoexplicitlytypeyourGraphQLschemaifyouwanttouseoptionalfields.Thiswayyoudon't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "File":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
File: node_modules/gatsby-theme-apollo-docs/gatsby-node.js:271:19ERROR #85901GRAPHQLTherewasanerrorinyourGraphQLquery:
Unknownargument"gitRemote"onfield"file"oftype"Query".File: node_modules/gatsby-theme-apollo-docs/gatsby-node.js:271:19ERROR #85923GRAPHQLTherewasanerrorinyourGraphQLquery:
Cannotqueryfield"fields"ontype"File".Ifyoudon't expect "fields" to exist on the type "File" it is most likely a typo.
However,ifyouexpect"fields"toexistthereareacoupleofsolutionstocommon problems:
-Ifyouaddedanewdatasourceand/orchangedsomethinginsidegatsby-node.js/gatsby-config.js,pleasetryarestartofyourdevelopmentserver-Thefieldmightbeaccessibleinanothersubfield,pleasetryyourqueryinGraphiQLandusetheGraphiQLexplorertoseewhichfieldsyoucanqueryandwhatshapetheyhave-Youwanttooptionallyuseyourfield"fields"andrightnowitisnotusedanywhere.ThereforeGatsbycan't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")
ItisrecommendedtoexplicitlytypeyourGraphQLschemaifyouwanttouseoptionalfields.Thiswayyoudon't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "File":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
File: node_modules/gatsby-theme-apollo-docs/gatsby-node.js:271:19ERROR #11321PLUGIN"gatsby-theme-apollo-docs"threwanerrorwhilerunningthecreatePages lifecycle:
Cannotdestructureproperty`file`of'undefined'or'null'.283|`); 284 | > 285 | const {file} = response.data; | ^ 286 | return file && file.fields.raw; 287 | }) 288 | );File: node_modules/gatsby-theme-apollo-docs/gatsby-node.js:285:15 TypeError: Cannot destructure property `file` of 'undefined' or 'null'.-gatsby-node.js:285[docs]/[gatsby-theme-apollo-docs]/gatsby-node.js:285:15-task_queues.js:94processTicksAndRejectionsinternal/process/task_queues.js:94:5-asyncPromise.all-gatsby-node.js:270asyncObject.exports.createPages[docs]/[gatsby-theme-apollo-docs]/gatsby-node.js:270:21-Frompreviousevent:
-api-runner-node.js:258runAPI[docs]/[gatsby]/dist/utils/api-runner-node.js:258:22-api-runner-node.js:375Promise.catch.decorateEvent.pluginName[docs]/[gatsby]/dist/utils/api-runner-node.js:375:15-Frompreviousevent:
-api-runner-node.js:374[docs]/[gatsby]/dist/utils/api-runner-node.js:374:12-timers.js:439processImmediateinternal/timers.js:439:21-Frompreviousevent:
-api-runner-node.js:368[docs]/[gatsby]/dist/utils/api-runner-node.js:368:11-Frompreviousevent:
-api-runner-node.js:275module.exports[docs]/[gatsby]/dist/utils/api-runner-node.js:275:12-index.js:417module.exports[docs]/[gatsby]/dist/bootstrap/index.js:417:9-develop-process.js:459asyncmodule.exports[docs]/[gatsby]/dist/commands/develop-process.js:459:7failedcreatePages-0.084s
...
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I've been trying to use
versions
feature to have docs available for the latest version frommaster
branch, and latest docs fordevelop
of unreleased features.I'm getting the following error when I attempt to follow the docs: Unknown argument "gitRemote" on field "file" of type "Query"
Is that how the feature is supposed to be used?
Full logs:
The text was updated successfully, but these errors were encountered: