{"record":{"id":"2ba91c8b910b8675","repo":"gatsbyjs/gatsby","slug":"112004","errorCode":"112004","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":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-wordpress/src/steps/create-schema-customization/helpers.js","lineNumber":442,"sourceCode":"        : ``\n    }`\n  )\n\n  const maxErrorLength = 5000\n\n  if (errorMessage.length > maxErrorLength) {\n    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":424,"sourceCodeEnd":452,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-source-wordpress/src/steps/create-schema-customization/helpers.js#L424-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:442 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set WP_INCONSISTENT_SCHEMA_WARN=true to downgrade this to a warning","Delete .cache and rebuild to regenerate type definitions","Report the missing/changed type defs text to the gatsby-source-wordpress issue tracker"],"exampleFix":null,"handlingStrategy":"fallback","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-14T00:17:10.932Z"}