{"record":{"id":"2eaab09c3db835bf","repo":"gatsbyjs/gatsby","slug":"11902","errorCode":"11902","errorMessage":"We encountered an error while trying to compile your site's ${context.configName}. Check the current limitations (https://gatsby.dev/ts-limitations), fix the error, and try again.","messagePattern":"We encountered an error while trying to compile your site's (.+?)\\. Check the current limitations \\(https://gatsby\\.dev/ts-limitations\\), fix the error, and try again\\.","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby/src/bootstrap/get-config-file.ts","lineNumber":72,"sourceCode":"}\n\nasync function attemptImportCompiled(\n  siteDirectory: string,\n  configName: string\n): Promise<{\n  configModule: unknown\n  configFilePath: string\n}> {\n  let compiledResult\n\n  try {\n    const compiledConfigPath = path.join(\n      `${siteDirectory}/${COMPILED_CACHE_DIR}`,\n      configName\n    )\n    compiledResult = await attemptImport(siteDirectory, compiledConfigPath)\n  } catch (error) {\n    report.panic({\n      id: `11902`,\n      error: error,\n      context: {\n        configName,\n        message: error.message,\n      },\n    })\n  }\n\n  return compiledResult\n}\n\nasync function attemptImportUncompiled(\n  siteDirectory: string,\n  configName: string,\n  distance: number\n): Promise<{\n  configModule: unknown","sourceCodeStart":54,"sourceCodeEnd":90,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby/src/bootstrap/get-config-file.ts#L54-L90","documentation":"Error \"We encountered an error while trying to compile your site's ${context.configName}. Check the current limitations (https://gatsby.dev/ts-limitations), fix the error, and try again.\" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby/src/bootstrap/get-config-file.ts:72 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the compile error shown in the attached error message","Review the current TypeScript config limitations at https://gatsby.dev/ts-limitations","Run `gatsby clean` to clear the stale compiled-config cache and retry"],"exampleFix":null,"handlingStrategy":"try-catch","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"}