{"record":{"id":"e2fb4268820fb9d9","repo":"gatsbyjs/gatsby","slug":"missing-staticimage-src-in-filename","errorCode":null,"errorMessage":"Missing StaticImage \"src\" in ${filename}.","messagePattern":"Missing StaticImage \"src\" in (.+?)\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-plugin-image/src/node-apis/image-processing.ts","lineNumber":89,"sourceCode":"  createNode,\n  filename,\n}: {\n  images: Map<string, IStaticImageProps>\n  pathPrefix: string\n  cacheDir: string\n  reporter: Reporter\n  cache: GatsbyCache\n  sourceDir: string\n  createNodeId: ParentSpanPluginArgs[\"createNodeId\"]\n  createNode: Actions[\"createNode\"]\n  filename: string\n}): Promise<void> {\n  const promises = [...images.entries()].map(\n    async ([hash, { src, ...args }]) => {\n      let file: FileSystemNode | undefined\n      let fullPath\n      if (!src) {\n        reporter.warn(`Missing StaticImage \"src\" in ${filename}.`)\n        return\n      }\n      if (isRemoteURL(src)) {\n        let createRemoteFileNode\n        try {\n          createRemoteFileNode =\n            require(`gatsby-source-filesystem`).createRemoteFileNode\n        } catch (e) {\n          reporter.panic(`Please install gatsby-source-filesystem`)\n        }\n\n        try {\n          file = await createRemoteFileNode({\n            url: src,\n            cache,\n            createNode,\n            createNodeId,\n          })","sourceCodeStart":71,"sourceCodeEnd":107,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-plugin-image/src/node-apis/image-processing.ts#L71-L107","documentation":"Guard in gatsby-plugin-image's node API: while writing queued images for a source file, an entry's `src` was falsy (the <StaticImage> usage had no resolvable src). The entry is skipped with this warning; the rest of the file's images are still processed.","triggerScenarios":"Thrown at packages/gatsby-plugin-image/src/node-apis/image-processing.ts:89 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Make sure every <StaticImage> has a non-empty, statically-evaluable src prop"],"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"}