gatsbyjs/gatsby · error
112004
112004
Error message
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 ? `
Missing type names: ${missingTypeNames.join(`
`)}
` : ``}${changedTypeDefs.length ? `
Changed type defs:
${changedTypeDefs.join(`
`)}` : ``} What it means
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 ? ` Missing type names: ${missingTypeNames.join(` `)} ` : ``}${changedTypeDefs.length ? ` Changed type defs: ${changedTypeDefs.join(` `)}` : ``}" thrown in gatsbyjs/gatsby.
Source
Thrown at packages/gatsby-source-wordpress/src/steps/create-schema-customization/helpers.js:442
: ``
}`
)
const maxErrorLength = 5000
if (errorMessage.length > maxErrorLength) {
errorMessage =
errorMessage.substring(0, maxErrorLength) +
`\n\n...\n[Diff exceeded ${maxErrorLength} characters and was truncated]`
}
if (process.env.WP_INCONSISTENT_SCHEMA_WARN !== `true`) {
reporter.info(
formatLogMessage(
`Panicking due to inconsistent schema customization. Turn this into a warning by setting process.env.WP_INCONSISTENT_SCHEMA_WARN to a string of "true"`
)
)
reporter.panic({
id: CODES.InconsistentSchemaCustomization,
context: {
sourceMessage: errorMessage,
},
})
} else {
reporter.warn(errorMessage)
}
}
View on GitHub (pinned to e85d62f177)
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
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at packages/gatsby-source-wordpress/src/steps/create-schema-customization/helpers.js:442 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of gatsbyjs/gatsby@e85d62f177 (2026-08-26).
Data as JSON: /api/errors/2ba91c8b910b8675.
Report an issue: GitHub.