{"record":{"id":"25f9d3c7755d3354","repo":"gatsbyjs/gatsby","slug":"gatsby-transformer-sharp-the-fixed-and-fluid","errorCode":null,"errorMessage":"[gatsby-transformer-sharp] The \"fixed\" and \"fluid\" resolvers are now deprecated. Switch to \"gatsby-plugin-image\" for better performance and a simpler API. See https://gatsby.dev/migrate-images to learn how.","messagePattern":"\\[gatsby-transformer-sharp\\] The \"fixed\" and \"fluid\" resolvers are now deprecated\\. Switch to \"gatsby-plugin-image\" for better performance and a simpler API\\. See https://gatsby\\.dev/migrate-images to learn how\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-transformer-sharp/src/customize-schema.js","lineNumber":54,"sourceCode":"  ImagePlaceholderType,\n  JPGOptionsType,\n  PNGOptionsType,\n  WebPOptionsType,\n  BlurredOptionsType,\n  TransformOptionsType,\n  AVIFOptionsType,\n} = require(`./types`)\nconst { stripIndent } = require(`common-tags`)\nconst { prefixId, CODES } = require(`./error-utils`)\n\nlet warnedForDeprecation = false\n\nfunction warnForDeprecation() {\n  if (warnedForDeprecation) {\n    return\n  }\n  warnedForDeprecation = true\n  console.warn(\n    `[gatsby-transformer-sharp] The \"fixed\" and \"fluid\" resolvers are now deprecated. Switch to \"gatsby-plugin-image\" for better performance and a simpler API. See https://gatsby.dev/migrate-images to learn how.`\n  )\n}\n\nfunction toArray(buf) {\n  const arr = new Array(buf.length)\n\n  for (let i = 0; i < buf.length; i++) {\n    arr[i] = buf[i]\n  }\n\n  return arr\n}\n\nlet didShowTraceSVGRemovalWarningFixed = false\nconst fixedNodeType = ({\n  pathPrefix,\n  getNodeAndSavePathDependency,","sourceCodeStart":36,"sourceCodeEnd":72,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-transformer-sharp/src/customize-schema.js#L36-L72","documentation":"Error \"[gatsby-transformer-sharp] The \"fixed\" and \"fluid\" resolvers are now deprecated. Switch to \"gatsby-plugin-image\" for better performance and a simpler API. See https://gatsby.dev/migrate-images to learn how.\" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby-transformer-sharp/src/customize-schema.js:54 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Replace `fixed` and `fluid` queries in GraphQL with the gatsbyImageData field","Migrate <Img fixed={...}>/<Img fluid={...}> usages to <GatsbyImage image={...}> from gatsby-plugin-image","Follow the migration guide at https://gatsby.dev/migrate-images (codemods are available)","Remove gatsby-image from dependencies once no queries use fixed/fluid"],"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"}