{"record":{"id":"a7dd32b05b415e9e","repo":"gatsbyjs/gatsby","slug":"beforechangenode-type-setting-for-typename-thre","errorCode":null,"errorMessage":"beforeChangeNode type setting for ${typeName} threw error:\n${e.message}","messagePattern":"beforeChangeNode type setting for (.+?) threw error:\n(.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts","lineNumber":125,"sourceCode":"        }\n\n        try {\n          const absoluteRequirePath: string | undefined = path.isAbsolute(\n            beforeChangeNodePath\n          )\n            ? beforeChangeNodePath\n            : require.resolve(\n                path.join(gatsbyStore.program.directory, beforeChangeNodePath)\n              )\n\n          const beforeChangeNodeFn = require(absoluteRequirePath)\n\n          if (beforeChangeNodeFn) {\n            userPluginOptions.type[typeName].beforeChangeNode =\n              beforeChangeNodeFn\n          }\n        } catch (e) {\n          helpers.reporter.panic(\n            formatLogMessage(\n              `beforeChangeNode type setting for ${typeName} threw error:\\n${e.message}`\n            )\n          )\n        }\n      })\n\n      return userPluginOptions\n    },\n  },\n]\n\nexport const processAndValidatePluginOptions = (\n  helpers: GatsbyNodeApiHelpers,\n  pluginOptions: IPluginOptions\n): IPluginOptions => {\n  let userPluginOptions = cloneDeep(pluginOptions)\n","sourceCodeStart":107,"sourceCodeEnd":143,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/8b06340921ffdf23125a365b9c9923690cb62ce6/packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts#L107-L143","documentation":"Error \"beforeChangeNode type setting for ${typeName} threw error:\n${e.message}\" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts:125 when the library encounters an invalid state.","commonSituations":"Occurs when the beforeChangeNode module for a type throws while processing options. Fix the error inside the referenced beforeChangeNode file.","solutions":["Read the thrown error message and fix the bug in your beforeChangeNode file for that type.","Temporarily remove the beforeChangeNode option to confirm the error comes from that file."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8b06340921ffdf23125a365b9c9923690cb62ce6","analyzedAt":"2026-08-13T02:36:21.405Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}