{"record":{"id":"bf3639073d2e60d2","repo":"gatsbyjs/gatsby","slug":"the-path-passed-to-gatsby-source-filesystem-does","errorCode":null,"errorMessage":"\nThe path passed to gatsby-source-filesystem does not exist on your file system:\n${pluginOptions.path}\nPlease pick a path to an existing directory.\nSee docs here - https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/\n      ","messagePattern":"\nThe path passed to gatsby-source-filesystem does not exist on your file system:\n(.+?)\nPlease pick a path to an existing directory\\.\nSee docs here - https://www\\.gatsbyjs\\.com/plugins/gatsby-source-filesystem/\n      ","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-filesystem/src/gatsby-node.js","lineNumber":183,"sourceCode":"  return interpret(fsMachine).start()\n}\n\nexports.pluginOptionsSchema = ({ Joi }) =>\n  Joi.object({\n    name: Joi.string(),\n    path: Joi.string(),\n    fastHash: Joi.boolean().default(false),\n    ignore: Joi.array().items(\n      Joi.string(),\n      Joi.object().regex(),\n      Joi.function()\n    ),\n  })\n\nexports.sourceNodes = (api, pluginOptions) => {\n  // Validate that the path exists.\n  if (!fs.existsSync(pluginOptions.path)) {\n    api.reporter.panic(`\nThe path passed to gatsby-source-filesystem does not exist on your file system:\n${pluginOptions.path}\nPlease pick a path to an existing directory.\nSee docs here - https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/\n      `)\n  }\n\n  // Validate that the path is absolute.\n  // Absolute paths are required to resolve images correctly.\n  if (!path.isAbsolute(pluginOptions.path)) {\n    pluginOptions.path = path.resolve(process.cwd(), pluginOptions.path)\n  }\n\n  const fsMachine = createFSMachine(api, pluginOptions)\n\n  // Once bootstrap is finished, we only let one File node update go through\n  // the system at a time.\n  api.emitter.on(`BOOTSTRAP_FINISHED`, () => {","sourceCodeStart":165,"sourceCodeEnd":201,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/8b06340921ffdf23125a365b9c9923690cb62ce6/packages/gatsby-source-filesystem/src/gatsby-node.js#L165-L201","documentation":"Error \"\nThe path passed to gatsby-source-filesystem does not exist on your file system:\n${pluginOptions.path}\nPlease pick a path to an existing directory.\nSee docs here - https://www.gatsbyjs.com/plugins/gatsby-source-filesystem/\n      \" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby-source-filesystem/src/gatsby-node.js:183 when the library encounters an invalid state.","commonSituations":"Occurs when the path option given to gatsby-source-filesystem in gatsby-config.js points to a directory that does not exist. Create the directory or correct the path option.","solutions":["Fix the path option for gatsby-source-filesystem in gatsby-config.js to point at an existing directory.","Create the missing directory, or use path.resolve(__dirname, 'relative/path') so the path is absolute and correct."],"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"}