{"record":{"id":"d6a104877b8e815c","repo":"gatsbyjs/gatsby","slug":"chalk-bold-decoding-is-an-invalid-value-for-th","errorCode":null,"errorMessage":"${chalk.bold(decoding)} is an invalid value for the ${chalk.bold(`decoding`)} option. Please pass one of \"async\", \"sync\" or \"auto\".","messagePattern":"(.+?) is an invalid value for the (.+?) option\\. Please pass one of \"async\", \"sync\" or \"auto\"\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-remark-images/src/index.js","lineNumber":246,"sourceCode":"\n    const title = node.title ? _.escape(node.title) : ``\n\n    const loading = options.loading\n\n    if (![`lazy`, `eager`, `auto`].includes(loading)) {\n      reporter.warn(\n        reporter.stripIndent(`\n        ${chalk.bold(loading)} is an invalid value for the ${chalk.bold(\n          `loading`\n        )} option. Please pass one of \"lazy\", \"eager\" or \"auto\".\n      `)\n      )\n    }\n\n    const decoding = options.decoding\n\n    if (![`async`, `sync`, `auto`].includes(decoding)) {\n      reporter.warn(\n        reporter.stripIndent(`\n        ${chalk.bold(decoding)} is an invalid value for the ${chalk.bold(\n          `decoding`\n        )} option. Please pass one of \"async\", \"sync\" or \"auto\".\n      `)\n      )\n    }\n\n    const imageStyle = `\n      width: 100%;\n      height: 100%;\n      margin: 0;\n      vertical-align: middle;\n      position: absolute;\n      top: 0;\n      left: 0;`.replace(/\\s*(\\S+:)\\s*/g, `$1`)\n\n    // Create our base image tag","sourceCodeStart":228,"sourceCodeEnd":264,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-remark-images/src/index.js#L228-L264","documentation":"Option-validation warning while generating markup for a markdown image node: the plugin's `decoding` option value is not one of 'async', 'sync' or 'auto'. Markup is still generated with the invalid value; the warning tells you to fix the gatsby-remark-images plugin option.","triggerScenarios":"Thrown at packages/gatsby-remark-images/src/index.js:246 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set decoding to \"async\", \"sync\" or \"auto\" in plugin options"],"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"}