{"record":{"id":"135eac4ac03bc685","repo":"vercel/next.js","slug":"typescript-project-references-are-not-fully-suppor","errorCode":null,"errorMessage":"TypeScript project references are not fully supported. Attempting to build in incremental mode.","messagePattern":"TypeScript project references are not fully supported\\. Attempting to build in incremental mode\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/lib/typescript/runTypeCheck.ts","lineNumber":133,"sourceCode":"    }\n  }\n  const requiredConfig = getRequiredConfiguration(typescript)\n\n  const options = {\n    ...requiredConfig,\n    ...effectiveConfiguration.options,\n    declarationMap: false,\n    emitDeclarationOnly: false,\n    noEmit: true,\n  }\n\n  let program:\n    | import('typescript').Program\n    | import('typescript').BuilderProgram\n  let incremental = false\n  if ((options.incremental || options.composite) && cacheDir) {\n    if (options.composite) {\n      warn(\n        'TypeScript project references are not fully supported. Attempting to build in incremental mode.'\n      )\n    }\n    incremental = true\n    program = typescript.createIncrementalProgram({\n      rootNames: fileNames,\n      options: {\n        ...options,\n        composite: false,\n        incremental: true,\n        tsBuildInfoFile: path.join(cacheDir, '.tsbuildinfo'),\n      },\n    })\n  } else {\n    program = typescript.createProgram(fileNames, options)\n  }\n\n  const result = program.emit()","sourceCodeStart":115,"sourceCodeEnd":151,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/lib/typescript/runTypeCheck.ts#L115-L151","documentation":"runTypeCheck warns when the TypeScript config uses composite project references: Next.js type checking does not fully support build mode, so it falls back to running the check in incremental mode instead.","triggerScenarios":"Thrown at packages/next/src/lib/typescript/runTypeCheck.ts:133 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Avoid TypeScript project references with Next.js, or accept incremental type-checking mode."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0eb377541648e63402a47b38fee00a8d0ce8f8f1","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}