{"record":{"id":"c3afd9214e7c0a3f","repo":"gatsbyjs/gatsby","slug":"the-destination-value-is-not-a-valid-windows","errorCode":null,"errorMessage":"The destination \"${value}\" is not a valid Windows filename. Please try another name","messagePattern":"The destination \"(.+?)\" is not a valid Windows filename\\. Please try another name","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/create-gatsby/src/utils/question-helpers.ts","lineNumber":48,"sourceCode":"  return [none, divider, ...entries]\n}\n\nexport function validateProjectName(value: string): boolean {\n  if (!value) {\n    reporter.warn(\n      `You have not provided a directory name for your site. Please do so when running with the 'y' flag.`\n    )\n    return false\n  }\n  value = value.trim()\n  if (INVALID_FILENAMES.test(value)) {\n    reporter.warn(\n      `The destination \"${value}\" is not a valid filename. Please try again, avoiding special characters.`\n    )\n    return false\n  }\n  if (process.platform === `win32` && INVALID_WINDOWS.test(value)) {\n    reporter.warn(\n      `The destination \"${value}\" is not a valid Windows filename. Please try another name`\n    )\n    return false\n  }\n  if (fs.existsSync(path.resolve(value))) {\n    reporter.warn(\n      `The destination \"${value}\" already exists. Please choose a different name`\n    )\n    return false\n  }\n  return true\n}\n\n// Enquirer types are not exported and are out of date\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const generateQuestions = (\n  initialFolderName: string,\n  flags: IFlags","sourceCodeStart":30,"sourceCodeEnd":66,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/create-gatsby/src/utils/question-helpers.ts#L30-L66","documentation":"Validation-helper warning from create-gatsby's project name validator: on Windows (process.platform === 'win32') the name matched the INVALID_WINDOWS pattern (reserved names like CON/PRN, or characters such as <>:\"|?*). The validator returns false so the name is rejected.","triggerScenarios":"Thrown at packages/create-gatsby/src/utils/question-helpers.ts:48 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pick a name avoiding Windows-reserved names (CON, PRN, AUX, NUL, COM1..) and characters like < > : \" / \\ | ? *"],"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"}