{"record":{"id":"b99b086282c98650","repo":"gatsbyjs/gatsby","slug":"the-remote-wpgraphql-schema-hasn-t-changed-but-loc","errorCode":null,"errorMessage":"The remote WPGraphQL schema hasn't changed but local generated type definitions have. This is a bug, please open an issue on Github${missingTypeNames.length || changedTypeDefs.length ? ` and include the following text.` : ``}.${missingTypeNames.length ? `\\n\\nMissing type names: ${missingTypeNames.join(`\\n`)}\\n` : ``}${changedTypeDefs.length ? `\\n\\nChanged type defs:\\n\\n${changedTypeDefs.join(`\\n`)}` : ``}","messagePattern":"The remote WPGraphQL schema hasn't changed but local generated type definitions have\\. This is a bug, please open an issue on Github(.+?)\\.(.+?)\\\\n` : ``\\}(.+?)` : ``\\}","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-wordpress/src/steps/create-schema-customization/helpers.js","lineNumber":449,"sourceCode":"    errorMessage =\n      errorMessage.substring(0, maxErrorLength) +\n      `\\n\\n...\\n[Diff exceeded ${maxErrorLength} characters and was truncated]`\n  }\n\n  if (process.env.WP_INCONSISTENT_SCHEMA_WARN !== `true`) {\n    reporter.info(\n      formatLogMessage(\n        `Panicking due to inconsistent schema customization. Turn this into a warning by setting process.env.WP_INCONSISTENT_SCHEMA_WARN to a string of \"true\"`\n      )\n    )\n    reporter.panic({\n      id: CODES.InconsistentSchemaCustomization,\n      context: {\n        sourceMessage: errorMessage,\n      },\n    })\n  } else {\n    reporter.warn(errorMessage)\n  }\n}\n","sourceCodeStart":431,"sourceCodeEnd":452,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-source-wordpress/src/steps/create-schema-customization/helpers.js#L431-L452","documentation":"Error \"The remote WPGraphQL schema hasn't changed but local generated type definitions have. This is a bug, please open an issue on Github${missingTypeNames.length || changedTypeDefs.length ? ` and include the following text.` : ``}.${missingTypeNames.length ? `\\n\\nMissing type names: ${missingTypeNames.join(`\\n`)}\\n` : ``}${changedTypeDefs.length ? `\\n\\nChanged type defs:\\n\\n${changedTypeDefs.join(`\\n`)}` : ``}\" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby-source-wordpress/src/steps/create-schema-customization/helpers.js:449 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set process.env.WP_INCONSISTENT_SCHEMA_WARN=true to downgrade the panic to a warning","Clear .cache so schema customization is regenerated consistently with the remote WPGraphQL schema","Open a GitHub issue including the missing type names / changed type defs listed in the message"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e85d62f1779e353eaac1753211629a26d123e26c","analyzedAt":"2026-08-26T17:50:09.662Z","contentChangedAt":"2026-08-26T17:50:09.662Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}