{"record":{"id":"6044612c2b7febf2","repo":"vercel/next.js","slug":"missing-required-error-components","errorCode":null,"errorMessage":"missing required error components","messagePattern":"missing required error components","errorType":"exception","errorClass":"WrappedBuildError","httpStatus":500,"severity":"error","filePath":"packages/next/src/server/base-server.ts","lineNumber":3347,"sourceCode":"              <pre>missing required error components, refreshing...</pre>\n              <script>\n                async function check() {\n                  const res = await fetch(location.href).catch(() => ({}))\n\n                  if (res.status === 200) {\n                    location.reload()\n                  } else {\n                    setTimeout(check, 1000)\n                  }\n                }\n                check()\n              </script>`,\n              HTML_CONTENT_TYPE_HEADER\n            ),\n          }\n        }\n\n        throw new WrappedBuildError(\n          new Error('missing required error components')\n        )\n      }\n\n      // If the page has a route module, use it for the new match. If it doesn't\n      // have a route module, remove the match.\n      if (result.components.routeModule) {\n        addRequestMeta(ctx.req, 'match', {\n          definition: result.components.routeModule.definition,\n          params: undefined,\n        })\n      } else {\n        removeRequestMeta(ctx.req, 'match')\n      }\n\n      try {\n        return await this.renderToResponseWithComponents(\n          {","sourceCodeStart":3329,"sourceCodeEnd":3365,"githubUrl":"https://github.com/vercel/next.js/blob/258b1c1bc05f7099816b88f70b7b3422b24a4b8d/packages/next/src/server/base-server.ts#L3329-L3365","documentation":"Dev-mode failure in base-server's rendering path: the error boundary components (global-error/error page) that must wrap every render have not been compiled yet by the hot dev server. The server first serves a minimal HTML page that polls the URL and reloads once compilation finishes, then throws this WrappedBuildError to surface the incomplete compilation state.","triggerScenarios":"The server cannot load the required error components for a build.","commonSituations":"A corrupted or mismatched .next build is missing compiled error component entries.","solutions":["Rebuild the application; required error components (error.js / global-error.js / not-found) are missing from the build output."],"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"}