{"record":{"id":"6ae0ee5d3f798202","repo":"gatsbyjs/gatsby","slug":"plugin-option-filter-is-unnamed-test-tostring","errorCode":null,"errorMessage":"Plugin option filter is unnamed\n\n${test.toString()}\n\n${processor.toString()}","messagePattern":"Plugin option filter is unnamed\n\n(.+?)\n\n(.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts","lineNumber":146,"sourceCode":"            )\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\n  optionsProcessors.forEach(({ test, processor, name }) => {\n    if (!name) {\n      helpers.reporter.panic(\n        formatLogMessage(\n          `Plugin option filter is unnamed\\n\\n${test.toString()}\\n\\n${processor.toString()}`\n        )\n      )\n    }\n\n    if (test({ helpers, userPluginOptions })) {\n      const filteredUserPluginOptions = processor({\n        helpers,\n        userPluginOptions,\n      })\n\n      if (filteredUserPluginOptions) {\n        userPluginOptions = filteredUserPluginOptions\n      } else {\n        helpers.reporter.panic(\n          formatLogMessage(\n            `Plugin option filter ${name} didn't return a filtered options object`","sourceCodeStart":128,"sourceCodeEnd":164,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/8b06340921ffdf23125a365b9c9923690cb62ce6/packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts#L128-L164","documentation":"Error \"Plugin option filter is unnamed\n\n${test.toString()}\n\n${processor.toString()}\" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts:146 when the library encounters an invalid state.","commonSituations":"Occurs when a plugin option filter is defined without a name. Give each filter in the plugin options a `name` property so failures can be identified.","solutions":["Give the plugin option filter a name property in your gatsby-config.js plugin options filters.","Ensure every filter in the options.filters array includes { name, test, processor }."],"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"}