{"record":{"id":"a4cd14b757d32b73","repo":"vercel/next.js","slug":"fast-refresh-had-to-perform-a-full-reload-due-to-a-a4cd14","errorCode":null,"errorMessage":"Fast Refresh had to perform a full reload due to a runtime error.","messagePattern":"Fast Refresh had to perform a full reload due to a runtime error\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/server/dev/hot-reloader-webpack.ts","lineNumber":566,"sourceCode":"            }\n            case 'client-removed-page':\n            case 'client-added-page': {\n              traceChild = {\n                name: payload.event,\n                attrs: { page: payload.page || '' },\n              }\n              break\n            }\n            case 'client-full-reload': {\n              const { event, stackTrace, hadRuntimeError } = payload\n\n              traceChild = {\n                name: event,\n                attrs: { stackTrace: stackTrace ?? '' },\n              }\n\n              if (hadRuntimeError) {\n                Log.warn(FAST_REFRESH_RUNTIME_RELOAD)\n                break\n              }\n\n              let fileMessage = ''\n              if (stackTrace) {\n                const file = /Aborted because (.+) is not accepted/.exec(\n                  stackTrace\n                )?.[1]\n                if (file) {\n                  // `file` is filepath in `pages/` but it can be a webpack url.\n                  // If it's a webpack loader URL, it will include the app-pages layer\n                  if (file.startsWith(`(${WEBPACK_LAYERS.appPagesBrowser})/`)) {\n                    const fileUrl = new URL(file, 'file://')\n                    const cwd = process.cwd()\n                    const modules = fileUrl.searchParams\n                      .getAll('modules')\n                      .map((filepath) => filepath.slice(cwd.length + 1))\n                      .filter(","sourceCodeStart":548,"sourceCodeEnd":584,"githubUrl":"https://github.com/vercel/next.js/blob/258b1c1bc05f7099816b88f70b7b3422b24a4b8d/packages/next/src/server/dev/hot-reloader-webpack.ts#L548-L584","documentation":"Dev-server warning in hot-reloader-webpack's onHMR for the client-full-reload event: the browser reported a prior runtime error (hadRuntimeError), so Fast Refresh cannot safely apply the update incrementally — a broken module graph would persist. It logs this message while the client falls back to a full page reload to recover a clean state.","triggerScenarios":"Thrown at packages/next/src/server/dev/hot-reloader-webpack.ts:567 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the runtime error in your application; Fast Refresh reloaded the page to recover."],"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-14T05:17:10.506Z"}