{"record":{"id":"1e20eee79d22e02f","repo":"gatsbyjs/gatsby","slug":"could-not-find-image-src-in-filename-lo","errorCode":null,"errorMessage":"Could not find image \"${src}\" in \"${filename}\". Looked for ${fullPath}.","messagePattern":"Could not find image \"(.+?)\" in \"(.+?)\"\\. Looked for (.+?)\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-plugin-image/src/node-apis/image-processing.ts","lineNumber":127,"sourceCode":"          reporter.error(`Error loading image ${src}`, err)\n          return\n        }\n        if (\n          !file?.internal.mediaType ||\n          !supportedTypes.has(file.internal.mediaType)\n        ) {\n          reporter.error(\n            `The file loaded from ${src} is not a valid image type. Found \"${\n              file?.internal.mediaType || `unknown`\n            }\"`\n          )\n          return\n        }\n      } else {\n        fullPath = path.resolve(sourceDir, src)\n\n        if (!fs.existsSync(fullPath)) {\n          reporter.warn(\n            `Could not find image \"${src}\" in \"${filename}\". Looked for ${fullPath}.`\n          )\n          return\n        }\n\n        try {\n          const {\n            createFileNode,\n          } = require(`gatsby-source-filesystem/create-file-node`)\n\n          file = await createFileNode(fullPath, createNodeId, {})\n        } catch (e) {\n          reporter.panic(`Please install gatsby-source-filesystem`)\n        }\n      }\n\n      if (!file) {\n        reporter.warn(`Could not create node for image ${src}`)","sourceCodeStart":109,"sourceCodeEnd":145,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-plugin-image/src/node-apis/image-processing.ts#L109-L145","documentation":"Guard in gatsby-plugin-image's node API: for a local (non-remote) src, path.resolve(sourceDir, src) does not exist on disk, so no file node can be created and that image is skipped with a warning naming the path searched. Remote images that fail earlier get a reporter.error instead.","triggerScenarios":"Thrown at packages/gatsby-plugin-image/src/node-apis/image-processing.ts:127 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the src path so it resolves relative to the file containing the component","Add the missing image file"],"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-14T00:17:10.932Z"}