{"record":{"id":"58667d1d9b6da848","repo":"gatsbyjs/gatsby","slug":"missingresource","errorCode":"MissingResource","errorMessage":"error copying file from ${details.absolutePath} to ${publicPath}","messagePattern":"error copying file from (.+?) to (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-filesystem/src/extend-file-node.js","lineNumber":39,"sourceCode":"      resolve: (file, fieldArgs, context) => {\n        const details = getNodeAndSavePathDependency(file.id, context.path)\n        const fileName = `${file.internal.contentDigest}/${details.base}`\n\n        const publicPath = path.join(\n          process.cwd(),\n          `public`,\n          `static`,\n          fileName\n        )\n\n        if (!fs.existsSync(publicPath)) {\n          fs.copySync(\n            details.absolutePath,\n            publicPath,\n            { dereference: true },\n            err => {\n              if (err) {\n                reporter.panic(\n                  {\n                    id: prefixId(CODES.MissingResource),\n                    context: {\n                      sourceMessage: `error copying file from ${details.absolutePath} to ${publicPath}`,\n                    },\n                  },\n                  err\n                )\n              }\n            }\n          )\n        }\n\n        return `${pathPrefix}/static/${fileName}`\n      },\n    },\n  }\n}","sourceCodeStart":21,"sourceCodeEnd":57,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/8b06340921ffdf23125a365b9c9923690cb62ce6/packages/gatsby-source-filesystem/src/extend-file-node.js#L21-L57","documentation":"Error \"error copying file from ${details.absolutePath} to ${publicPath}\" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby-source-filesystem/src/extend-file-node.js:39 when the library encounters an invalid state.","commonSituations":"Occurs when copying a file node into the public folder fails, typically due to filesystem permissions or a missing source file. Check that the source path exists and the process can write to the public directory.","solutions":["Check the source file exists and is readable at the logged absolutePath.","Verify the build process has write permission to the public directory and enough free disk space."],"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"}