{"record":{"id":"a5f82e814d010e10","repo":"vercel/next.js","slug":"formatissue-issue","errorCode":null,"errorMessage":"${formatIssue(issue)}","messagePattern":"\\$\\{formatIssue\\(issue\\)\\}","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/server/dev/turbopack-utils.ts","lineNumber":74,"sourceCode":"  if (\n    severity === 'warning' &&\n    stage === 'config' &&\n    renderStyledStringToErrorAnsi(issue.title).includes(\"can't be external\")\n  ) {\n    if (onceErrorSet.has(issue)) {\n      return false\n    }\n    onceErrorSet.add(issue)\n  }\n\n  return true\n}\n\n/// Print out an issue to the console which should not block\n/// the build by throwing out or blocking error overlay.\nexport function printNonFatalIssue(issue: Issue) {\n  if (isRelevantWarning(issue) && shouldEmitOnceWarning(issue)) {\n    Log.warn(formatIssue(issue))\n  }\n}\n\nexport function processTopLevelIssues(\n  currentTopLevelIssues: TopLevelIssuesMap,\n  result: TurbopackResult\n) {\n  currentTopLevelIssues.clear()\n\n  for (const issue of result.issues) {\n    const issueKey = getIssueKey(issue)\n    currentTopLevelIssues.set(issueKey, issue)\n  }\n}\n\nexport { msToNs } from '../../shared/lib/turbopack/compilation-events'\n\nexport type ChangeSubscriptions = Map<","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/vercel/next.js/blob/258b1c1bc05f7099816b88f70b7b3422b24a4b8d/packages/next/src/server/dev/turbopack-utils.ts#L56-L92","documentation":"Generic passthrough logger in printNonFatalIssue: after isRelevantWarning/shouldEmitOnceWarning filtering, a Turbopack build issue (config or compile stage) that should not block the build is formatted via formatIssue and emitted with Log.warn. The message text is entirely the formatted issue payload — severity, title, and location come from Turbopack, not from this call site.","triggerScenarios":"Thrown at packages/next/src/server/dev/turbopack-utils.ts:74 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Address the reported Turbopack issue in the indicated file; details are in the formatted message."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"258b1c1bc05f7099816b88f70b7b3422b24a4b8d","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}